/* Sito a più pagine: menu con tendine, apertura delle pagine interne, testo, domande frequenti, chiusura */

/* MENU: tendine Servizi e Sedi, bottone Chiama */
.nav { align-items: stretch; }
.drop { position: relative; display: flex; }
.drop > a::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .3s; }
.drop:hover > a::after, .drop:focus-within > a::after { transform: translateY(1px) rotate(225deg); }
.drop-menu { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; padding: 10px 0; box-shadow: 0 18px 40px rgba(19,42,44,.14); border-top: 2px solid var(--icon); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s; }
.drop:hover .drop-menu, .drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav .drop-menu a { display: block; padding: 11px 24px; font-size: 15px; text-transform: none; transition: background .2s, padding .25s, color .2s; }
.nav .drop-menu a:hover { background: var(--paper); padding-left: 30px; color: var(--red); }
.nav a.nav-cta { background: var(--red); color: #fff; margin: 14px 24px 14px 10px; padding: 0 22px; border-radius: 40px; font-size: 14px; text-transform: none; font-weight: 500; transition: background .25s, transform .25s; }
.nav a.nav-cta:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.nav a { text-transform: none; font-size: 15px; }

/* APERTURA delle pagine interne */
.hero-page { height: auto; min-height: 68vh; padding: 120px 0 100px; }
.hero-page .hero-bg-plain { left: 0; background: radial-gradient(120% 90% at 85% 20%, #2c5a5f 0%, var(--black) 60%); }
.hero-page h1 { font-size: clamp(42px, 5.4vw, 74px); line-height: 1.02; max-width: 15em; }
.hero-page .eyebrow { color: #c9d6d4; margin-bottom: 14px; }
.hero-lead { max-width: 40em; margin: 22px 0 0; color: #dfe7e6; font-size: 18px; line-height: 1.65; }
.hero-lead p { margin: 0 0 10px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-in .hero-actions .btn { margin-top: 0; }
.hero-page .btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.hero-page .btn-line:hover { background: #fff; color: var(--head); }
.loaded .hero-in > :nth-child(4) { transition-delay: 1s; }
.loaded .hero-in > :nth-child(5) { transition-delay: 1.15s; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 0; font-size: 14px; color: #a9bab8; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--icon); }
.crumbs a { color: #dfe7e6; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.crumbs a:hover { border-color: #e2b98d; }

/* CORPO: testo a sinistra, contatti fissi a destra */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 70px; padding-top: 90px; padding-bottom: 90px; align-items: start; }
.prose { min-width: 0; color: var(--body); }
.prose p { margin: 0 0 16px; max-width: 42em; }
.blocco { margin: 0 0 70px; }
.blocco h2 { font-size: clamp(32px, 3vw, 44px); }
.blocco .rule { margin: 20px 0 26px; }
.lista { margin: 0 0 18px; padding: 0 0 0 20px; }
.lista li { margin: 0 0 8px; }
.lista li::marker { color: var(--icon); }
.prose a { color: var(--red); }

/* le strade possibili: schede */
.defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 6px 0 20px; }
.def { background: var(--paper); padding: 28px 28px 20px; border-radius: 4px; border-left: 3px solid var(--icon); transition: transform .35s, box-shadow .35s; }
.def:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(19,42,44,.1); }
.def h3 { font-size: 25px; font-weight: 400; margin: 0 0 10px; line-height: 1.15; }
.def-note { display: block; font-family: var(--font); font-size: 13.5px; color: var(--muted); margin-top: 6px; letter-spacing: .02em; }
.def p { font-size: 16px; margin: 0 0 10px; }

/* passi numerati */
.passi { list-style: none; counter-reset: passo; margin: 0 0 20px; padding: 0; position: relative; }
.passi::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.passi li { counter-increment: passo; position: relative; padding: 4px 0 22px 66px; }
.passi li::before { content: counter(passo); position: absolute; left: 0; top: 0; width: 43px; height: 43px; border-radius: 50%; background: #fff; border: 1.5px solid var(--icon); color: var(--head); font-family: var(--font-head); font-size: 22px; display: grid; place-items: center; transition: background .5s, color .5s; transition-delay: calc(var(--i, 0) * .11s + .3s); }
.passi.in li::before { background: var(--red); border-color: var(--red); color: #fff; }

/* domande frequenti */
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-family: var(--font-head); font-size: 23px; color: var(--head); line-height: 1.25; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font); font-size: 20px; color: var(--red); transition: transform .35s, background .35s, color .35s; }
.faq[open] summary::after { transform: rotate(45deg); background: var(--red); color: #fff; border-color: var(--red); }
.faq summary:hover { color: var(--red); }
.faq summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.faq-a { padding: 0 50px 14px 0; }
.faq[open] .faq-a { animation: apri .45s cubic-bezier(.2,.7,.2,1); }

/* vedi anche */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { text-decoration: none; padding: 10px 18px; border-radius: 40px; border: 1px solid var(--line); color: var(--head); font-size: 15px; transition: border-color .25s, background .25s, color .25s; }
.chips a:hover { border-color: var(--red); background: var(--red); color: #fff; }
.aggiornata { font-size: 14px; color: var(--muted); }

/* contatti a lato */
.side { position: sticky; top: 100px; }
.side-card { background: var(--black); color: #c9d6d4; padding: 30px; border-radius: 4px; display: flex; flex-direction: column; gap: 6px; }
.side-card a { color: #fff; text-decoration: none; font-size: 15.5px; }
.side-card a:not(.btn):hover { color: #e2b98d; }
.side-h { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: #e2b98d; margin: 14px 0 4px; }
.side-h:first-child { margin-top: 0; }
.side-big { font-family: var(--font-head); font-size: 30px !important; line-height: 1.1; }
.side-card .btn { margin-top: 18px; text-align: center; background: #e2b98d; color: var(--black); }
.side-card .btn:hover { background: #fff; }

/* chiusura scura */
.cta-band { background: var(--black); color: #c9d6d4; padding: 90px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; border: 1px solid rgba(226,185,141,.25); }
.cta-band h2 { color: #fff; }
.cta-in p { margin: 16px auto 0; max-width: 34em; }
.cta-in .hero-actions { justify-content: center; }
.btn-light { background: #e2b98d; color: var(--black); }
.btn-light:hover { background: #fff; color: var(--black); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--black); }

/* servizi: link alle pagine dalle schede */
.card-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 16px 0 0 !important; }
.card-links a { color: var(--red); font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(44,90,95,.3); transition: border-color .2s; }
.card-links a:hover { border-color: var(--red); }
.interna .services { padding-top: 80px; }

/* sedi: tre schede con foto */
.sedi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-top: 90px; padding-bottom: 90px; }
.sede { display: flex; flex-direction: column; text-decoration: none; background: #fff; box-shadow: 0 1px 0 var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow .35s, transform .35s; }
.sede:hover { box-shadow: 0 20px 44px rgba(19,42,44,.14); transform: translateY(-6px); }
.sede-img { height: 260px; background-size: cover; background-position: center 25%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.sede:hover .sede-img { transform: scale(1.05); }
.sede-txt { padding: 26px 26px 30px; position: relative; background: #fff; }
.sede h2 { font-size: 38px; }
.sede p { color: var(--body); margin: 10px 0 18px; }
.sede-go { color: var(--red); font-weight: 500; }

/* piè di pagina a colonne */
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-cols .foot-nav { text-align: left; }
.foot-h { color: #e2b98d; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; margin: 6px 0 8px !important; }

@media (max-width: 960px) {
  .nav { max-height: calc(100vh - 70px); overflow-y: auto; }
  .drop { flex-direction: column; }
  .drop > a::after { display: none; }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; padding: 0 0 8px; min-width: 0; }
  .nav .drop-menu a { padding: 9px 24px 9px 40px; font-size: 15px; color: var(--body); }
  .nav a.nav-cta { margin: 12px 24px 18px; padding: 14px 22px; justify-content: center; }
  .hero-page { min-height: 0; padding: 90px 0 70px; align-items: flex-end; }
  .hero-lead { font-size: 16.5px; }
  .page { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; padding-bottom: 60px; }
  .side { position: static; }
  .defs { grid-template-columns: 1fr; }
  .blocco { margin-bottom: 54px; }
  .faq summary { font-size: 20px; }
  .faq-a { padding-right: 0; }
  .sedi-grid { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 60px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-main { grid-column: 1 / -1; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .nav a { padding: 0 11px; }
  .nav a.nav-cta { margin-right: 16px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .drop-menu, .def, .sede, .sede-img, .faq summary::after { transition: none; }
  .faq[open] .faq-a { animation: none; }
  .passi li::before { transition: none; }
}
.foot-note { font-size: 13px; color: #8fa5a3; max-width: 34em; margin: 12px 0 0 !important; line-height: 1.5; }
.firma { margin-bottom: 4px; }
/* sedi senza foto (richiesta di Enrico, 04/12/2026): schede di testo con filo in alto */
.sede { border-top: 3px solid var(--icon); }
.sede-txt { padding: 34px 30px 34px; flex: 1; display: flex; flex-direction: column; }
.sede-txt p { flex: 1; }
