/* Homepage — DIN, palette istituzionale, fotografia e gerarchia editoriale.
   Caricato solo in homepage: i template interni mantengono il loro impianto. */
body.home {
  --barra-servizio: 0px;
  --barra-menu: 104px;
  --testata: var(--barra-menu);
  --testo: var(--navy);
  --testo-tenue: var(--prussia);
  --na-rule: rgba(43, 61, 78, .2);
  color: var(--navy);
}
.home .testata__servizio { display: none; }
.home .testata { border-bottom-color: rgba(255,255,255,.2); }
.home .testata__barra-inner { max-width: 1600px; padding-inline: 4.5%; }
.home .testata__logo { height: 56px; }
.home .testata--compatta .testata__logo { height: 39px; }
.home .testata--compatta { border-bottom-color: var(--na-rule); box-shadow: none; }
.home .menu__lista { gap: clamp(15px, 2vw, 32px); }
.home .menu__lista > li > a { font-size: 11px; font-weight: 300; letter-spacing: .18em; }
.home .testata__cta { background: transparent; color: var(--navy); border: 0; border-bottom: 1px solid currentColor; padding: 9px 0; font-size: 11px; }
.home .testata__cta::after { content: '↗'; margin-left: 28px; }
@media (min-width: 1100px) {
  .home .testata__barra-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .home .testata__marchio { grid-column: 2; grid-row: 1; margin: 0; }
  .home .menu { grid-column: 1; grid-row: 1; }
  .home .testata__cta { justify-self: end; grid-column: 3; }
}
.home-premium { --na-rule: rgba(43,61,78,.2); }
.na-wrap { width: min(100% - 12vw, 1320px); margin-inline: auto; }
.na-section { padding-block: clamp(64px, 7.5vw, 112px); }
.na-label { margin: 0; font-size: 11px; font-weight: 300; letter-spacing: .19em; line-height: 1.8; text-transform: uppercase; }
.na-label > span:first-child:not(:only-child) { margin-right: 16px; }
.na-label .occhiello, .na-standards .occhiello { display: inline; padding: 0; margin: 0; color: inherit; font: inherit; letter-spacing: inherit; }
.home-premium .occhiello::before { display: none; }
.na-title, .home-premium .titolo.na-title { max-width: 760px; font-size: clamp(40px, 4.6vw, 68px); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; margin: 0; }
.na-copy { font-size: 17px; line-height: 1.65; font-weight: 300; }
.na-copy p { margin-bottom: 1em; }
.na-copy p:last-child { margin-bottom: 0; }
.na-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 46px; padding-block: 9px; border-bottom: 1px solid var(--na-rule); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; transition: border-color .2s; }
.na-link > span[aria-hidden] { font-size: 25px; font-weight: 300; line-height: 1; transition: transform .2s; }
.na-link:hover { border-color: currentColor; }
.na-link:hover > span[aria-hidden] { transform: translateX(5px); }
.na-section-top { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 45px; }
.na-heading { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10%; align-items: end; margin-bottom: 50px; }
.na-dark { --na-rule: rgba(255,255,255,.3); color: var(--bianco); background: var(--navy); }
.na-dark h2, .na-dark h3 { color: var(--bianco); }
.na-dark .na-copy, .na-dark .na-section-top > .na-label { color: var(--acciaio); }
.na-dark :focus-visible, .na-hero :focus-visible { outline-color: var(--bianco); }

/* Hero: il soggetto resta visibile sopra il titolo, come nel riferimento. */
.na-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 780px; height: 100svh; max-height: 1150px; padding-top: 240px; padding-bottom: 120px; color: var(--bianco); background: var(--navy); overflow: hidden; }
.na-hero__photo, .na-hero__shade { position: absolute; inset: 0; z-index: -3; }
.na-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.na-hero__shade { z-index: -2; background: linear-gradient(180deg, rgba(43,61,78,.48), transparent 40%, rgba(43,61,78,.18) 55%, rgba(35,31,32,.72)), linear-gradient(90deg, rgba(43,61,78,.25), transparent 70%); }
.na-hero__drawing {
  position: absolute;
  z-index: -1;
  top: clamp(210px, 24vh, 265px);
  right: 6%;
  width: clamp(220px, 25vw, 360px);
  margin: 0;
  mix-blend-mode: screen;
  opacity: .7;
  pointer-events: none;
}
.na-hero__drawing img { width: 100%; height: auto; filter: grayscale(1); }
.na-hero__drawing figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.45); font-size: 10px; letter-spacing: .12em; }
.na-hero__drawing figcaption span { color: var(--acciaio); }
.na-hero__top { position: absolute; top: 153px; left: 0; right: 0; display: flex; justify-content: space-between; }
.na-hero__top p { line-height: 2; }
.na-hero__top p span { color: var(--acciaio); }
.na-hero__note { border-left: 1px solid rgba(255,255,255,.5); padding-left: 20px; }
.na-hero__copy { padding-left: 2%; }
.na-hero__copy > .na-label { margin-bottom: 18px; }
.na-hero__title { color: var(--bianco); font-size: clamp(62px, 7vw, 104px); font-weight: 700; letter-spacing: -.045em; line-height: .98; max-width: 740px; white-space: pre-line; text-wrap: balance; }
.na-hero__disciplines { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; font-size: 11px; letter-spacing: .17em; text-transform: uppercase; }
.na-hero__disciplines span { white-space: nowrap; }
.na-hero__disciplines span + span::before { content: '/'; margin-right: 20px; color: var(--acciaio); }
.na-hero__bottom { position: absolute; bottom: 30px; left: 0; right: 0; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.25); display: flex; justify-content: space-between; align-items: center; }
.na-hero__bottom a { display: flex; align-items: center; gap: 24px; min-height: 44px; }
.na-hero__bottom a span { font-size: 22px; }

/* Studio e dati verificabili del Company Profile. */
.na-intro__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12%; }
.na-intro .na-link { margin-top: 22px; }
.na-intro__image { margin: 40px 0 0; }
.na-intro__image img { width: 100%; max-height: 500px; object-fit: cover; }
.na-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--na-rule); margin-top: 55px; padding-top: 30px; }
.na-facts li { padding-inline: 28px; border-left: 1px solid var(--na-rule); }
.na-facts li:first-child { border: 0; padding-left: 0; }
.na-facts strong { display: block; font-size: clamp(28px, 2.7vw, 39px); line-height: 1.15; margin-bottom: 12px; font-weight: 300; letter-spacing: -.02em; }
.na-facts .na-label { display: block; font-size: 10px; max-width: 205px; }

/* Competenze: fotografie grandi, link a contenuti reali. */
.na-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.na-service { display: flex; flex-direction: column; min-width: 0; }
.na-service__image { display: block; aspect-ratio: 1.52; overflow: hidden; position: relative; margin-bottom: 25px; background: var(--prussia); }
.na-service__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.na-service:hover img { transform: scale(1.04); }
.na-service__image .na-label { position: absolute; top: 0; left: 0; padding: 10px 15px; background: var(--navy); }
.na-service h3 { font-size: clamp(24px, 2.1vw, 31px); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 17px; }
.na-service > p { color: var(--acciaio); font-size: 16px; line-height: 1.6; margin-bottom: 22px; }
.na-service > .na-link { margin-top: auto; align-self: flex-start; }

/* Valori: la cornice ha proporzioni proprie, indipendenti dai details. */
.na-approach .na-heading { margin-top: 28px; }
.na-approach__grid { display: grid; grid-template-columns: .92fr 1fr; gap: 9%; align-items: start; }
.na-approach__image { margin: 0; min-width: 0; align-self: start; }
.na-approach__frame { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--navy); }
.na-approach__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.na-approach__image figcaption { padding-top: 17px; color: var(--prussia); font-size: 10px; }
.na-approach__copy { min-width: 0; }
.na-approach__copy > .na-link { margin-top: 27px; }
.na-steps { border-top: 1px solid var(--na-rule); }
.na-steps details { border-bottom: 1px solid var(--na-rule); }
.na-steps summary { display: flex; align-items: center; gap: 24px; cursor: pointer; list-style: none; padding: 19px 0; min-height: 64px; font-size: 20px; font-weight: 700; }
.na-steps summary:hover { color: var(--prussia); }
.na-steps summary::-webkit-details-marker { display: none; }
.na-steps summary .na-label { color: var(--prussia); }
.na-steps__toggle { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; font-size: 24px; font-weight: 300; color: var(--prussia); }
.na-steps [open] .na-steps__toggle { transform: rotate(45deg); }
.na-steps details p { padding: 0 38px 24px 40px; font-size: 16px; line-height: 1.65; margin: 0; }

/* Il team sostituisce il portfolio illustrativo del template di riferimento. */
.na-team { border-top: 1px solid var(--na-rule); }
.na-people { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.na-person__image { display: block; height: clamp(330px, 35vw, 480px); overflow: hidden; background: rgba(161,168,172,.1); }
.na-person__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; transition: transform .7s var(--ease); }
.na-person:hover img { transform: scale(1.025); }
.na-person__caption { margin: 25px 0 18px; }
.na-person__caption .na-label { margin-bottom: 8px; font-size: 10px; }
.na-person h3 { font-size: clamp(24px, 2.3vw, 32px); }
.na-person h3 a { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.na-person h3 span { font-size: 28px; font-weight: 300; }
.na-person > .na-copy { max-width: 560px; font-size: 16px; }
.na-standards { padding-block: 55px; background: rgba(161,168,172,.09); border-top: 1px solid var(--na-rule); }
.na-standards__heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 35px; }
.na-standards__heading .titolo { font-size: 23px; margin: 0; }
.na-certifications { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.na-certifications li { border-left: 1px solid var(--na-rule); padding-left: 25px; }
.na-certifications li:first-child { border: 0; padding-left: 0; }
.na-certifications strong { display: block; font-size: 30px; line-height: 1.2; margin-bottom: 10px; }
.na-certifications small { font-size: 12px; margin-left: 7px; font-weight: 300; }
.na-certifications li > span { display: block; max-width: 215px; font-size: 13px; line-height: 1.5; }
.na-contact { position: relative; overflow: hidden; }
.na-contact__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 22%); gap: 7%; margin-bottom: 50px; }
.na-contact__content .na-title { margin-top: 28px; max-width: 820px; }
.na-contact__invitation { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-top: 35px; }
.na-contact__invitation .na-copy { max-width: 360px; }
.na-contact__invitation .na-link { flex-shrink: 0; gap: 25px; }
.na-contact__weave { position: absolute; inset: 0 0 0 auto; width: 24%; border-left: 1px solid var(--na-rule); background-color: var(--prussia); overflow: hidden; pointer-events: none; }
.na-contact__weave::before { content: ''; position: absolute; inset: 0; background: url('/wp-content/themes/nocerino-aiello/assets/img/textures/weave.webp') center / 135px auto repeat; opacity: .18; }
.na-contact__direct { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 24px; margin-right: 29%; border-top: 1px solid var(--na-rule); padding-top: 23px; font-size: 14px; }
.home .pie { padding-top: 55px; border-top: 1px solid rgba(255,255,255,.2); }
.home .pie__logo { max-width: 245px; }
.home .pie__claim { font-size: 14px; }
.home .pie__lista { font-size: 14px; }
.home .pie__base { margin-top: 40px; }
.home.menu-aperto .testata { background: var(--navy); }
.home.menu-aperto .testata__logo--chiaro { display: block; }
.home.menu-aperto .testata__logo--scuro { display: none; }
.home .apri-menu[aria-expanded="true"] .apri-menu__barra:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.home .pannello { top: var(--barra-menu); }
.home:has(.testata--compatta) .pannello { top: 64px; }
.home.admin-bar .testata { top: 32px; }
.home.admin-bar .pannello { margin-top: 32px; }

@media (max-width: 1099px) {
  .na-wrap { width: 88%; }
  .na-hero__copy { padding-left: 0; }
  .na-heading, .na-intro__grid { gap: 7%; }
  .na-approach__grid { gap: 7%; }
  .na-contact__invitation { align-items: start; flex-direction: column; gap: 20px; }
  .na-service h3 { font-size: 25px; }
  .na-contact__direct { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  body.home { --barra-menu: 82px; }
  .home .testata__logo { height: 44px; }
  .na-hero { min-height: 760px; padding-bottom: 120px; }
  .na-hero__top { top: 120px; }
  .na-hero__drawing { right: 6%; top: 185px; width: 235px; }
  .na-hero__title { font-size: 76px; max-width: 600px; }
  .na-hero__disciplines { font-size: 10px; letter-spacing: .1em; }
  .na-services { gap: 22px; }
  .na-service h3 { font-size: 23px; }
  .na-steps summary { font-size: 18px; gap: 18px; }
  .na-steps details p { padding-left: 34px; padding-right: 10px; }
  .na-facts li { padding-inline: 20px; }
}
@media (max-width: 700px) {
  .na-section { padding-block: 58px; }
  .na-section-top { margin-bottom: 30px; }
  .na-section-top > .na-label { display: none; }
  .na-label { font-size: 10px; letter-spacing: .16em; }
  .na-title, .home-premium .titolo.na-title { font-size: clamp(36px, 10vw, 48px); }
  .na-copy { font-size: 17px; }
  .na-hero { min-height: 740px; max-height: 1000px; padding-top: 235px; padding-bottom: 130px; }
  .na-hero__photo img { object-position: 43% center; }
  .na-hero__shade { background: linear-gradient(180deg, rgba(43,61,78,.45), transparent 32%, rgba(43,61,78,.4) 55%, rgba(35,31,32,.82)); }
  .na-hero__top { top: 115px; }
  .na-hero__note { display: none; }
  .na-hero__drawing { top: 190px; right: 6%; width: 170px; opacity: .65; }
  .na-hero__drawing figcaption { font-size: 9px; display: block; margin-top: 8px; padding-top: 8px; }
  .na-hero__drawing figcaption span { display: block; }
  .na-hero__title { font-size: clamp(49px, 12.5vw, 76px); max-width: 540px; }
  .na-hero__copy > .na-label { margin-bottom: 15px; }
  .na-hero__disciplines { max-width: 360px; line-height: 1.8; margin: 22px 0 0; gap: 6px 12px; font-size: 10px; }
  .na-hero__disciplines span + span::before { margin-right: 12px; }
  .na-hero__bottom { bottom: 20px; padding-top: 10px; }
  .na-hero__bottom > span { max-width: 180px; font-size: 10px; }
  .na-hero__bottom a { gap: 12px; }
  .na-intro__grid, .na-heading { grid-template-columns: 1fr; gap: 28px; }
  .na-facts { grid-template-columns: 1fr 1fr; gap: 28px 0; margin-top: 35px; }
  .na-facts li { padding-inline: 20px 0; }
  .na-facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .na-facts strong { font-size: 31px; }
  .na-facts .na-label { padding-right: 10px; font-size: 10px; }
  .na-services { grid-template-columns: 1fr; gap: 42px; }
  .na-service__image { aspect-ratio: 1.6; margin-bottom: 22px; }
  .na-service h3 { font-size: 29px; }
  .na-service > p { font-size: 17px; margin-bottom: 15px; }
  .na-approach__grid { grid-template-columns: 1fr; gap: 32px; }
  .na-approach__frame { aspect-ratio: 4 / 3; }
  .na-approach__frame img { object-position: 40% center; }
  .na-approach .na-heading { margin-bottom: 30px; }
  .na-people { grid-template-columns: 1fr; gap: 42px; }
  .na-person__image { height: auto; aspect-ratio: 1.1; }
  .na-person__caption { margin-top: 22px; }
  .na-person h3 { font-size: 27px; }
  .na-standards__heading { display: block; }
  .na-standards__heading .titolo { margin-top: 14px; font-size: 26px; }
  .na-certifications { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .na-certifications li { padding-left: 20px; }
  .na-certifications li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .na-certifications strong { font-size: 27px; }
  .na-certifications small { display: block; margin: 4px 0 0; }
  .na-contact__layout { grid-template-columns: 1fr; gap: 32px; margin-bottom: 30px; }
  .na-contact__weave { position: relative; inset: auto; width: auto; height: 68px; border-left: 0; border-block: 1px solid var(--na-rule); }
  .na-contact__weave::before { background-size: 90px auto; }
  .na-contact__invitation { margin-top: 25px; }
  .na-contact__direct { flex-direction: column; gap: 15px; margin-right: 0; font-size: 15px; overflow-wrap: anywhere; }
  .home .pie { padding-top: 45px; }
  .home .pie__griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .home .pie__colonna--marchio, .home .pie__colonna:last-child { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
  .home.admin-bar .testata { top: 46px; }
  .home.admin-bar .pannello { margin-top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-premium *, .home-premium *::before, .home-premium *::after { animation: none; transition: none; }
}
