:root {
  --teal: #17797f;          /* verde petrolio del brand */
  --teal-deep: #0d4d52;
  --teal-ink: #0a3a3e;
  --teal-soft: rgba(23, 121, 127, 0.08);
  --bg: #f7f6f2;
  --bg-2: #eeece6;
  --paper: #ffffff;
  --text: #1b2022;
  --grey: #454d50;
  --line: rgba(34, 40, 42, 0.12);
  --white: #fdfdfb;
  --wa: #25d366;

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --read: "Literata", Georgia, "Times New Roman", serif;
  --px: clamp(22px, 5vw, 84px);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--read); font-size: 17px; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--px); }

/* MONOGRAMMA */
.mono { position: relative; display: inline-block; width: 44px; height: 44px; font-family: var(--serif); color: currentColor; }
.mono .a { position: absolute; left: 2px; top: -4px; font-size: 42px; line-height: 1; font-weight: 400; }
.mono .f { position: absolute; left: 17px; top: -7px; font-size: 44px; line-height: 1; font-style: italic; font-weight: 400; }

/* NAV */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 16px 0; color: var(--white); background: rgba(10, 58, 62, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,0.06); transition: all 0.4s var(--ease); }
.site-header.scrolled { padding: 12px 0; background: rgba(247, 246, 242, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--teal-ink); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.15; letter-spacing: 0.01em; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.9; margin-top: 3px; }
.nav { display: flex; gap: 30px; align-items: center; font-size: 0.8rem; letter-spacing: 0.04em; }
.nav a { opacity: 1; font-weight: 500; transition: opacity 0.2s; }
.nav a:hover { opacity: 0.75; }
.nav-cta { opacity: 1 !important; border: 1px solid currentColor; padding: 10px 22px; border-radius: 40px; font-weight: 600; }
.site-header.scrolled .nav-cta { background: var(--teal); border-color: var(--teal); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 1.5px; background: currentColor; }

/* HERO */
.hero { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.hero-left { background: var(--teal); color: var(--white); display: flex; align-items: center; padding: 150px var(--px) 90px; position: relative; overflow: hidden; }
.hero-left::after { content: "Af"; position: absolute; right: -40px; bottom: -120px; font-family: var(--serif); font-size: 34rem; line-height: 1; color: rgba(255,255,255,0.05); font-style: italic; pointer-events: none; }
.hero-text { position: relative; z-index: 1; max-width: 560px; }
.kicker { display: flex; align-items: center; gap: 14px; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 1; font-weight: 600; margin-bottom: 30px; }
.kicker::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 4.6vw, 4.2rem); line-height: 1.08; margin: 0 0 26px; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: #d9f2f0; }
.hero-sub { font-size: 1.1rem; opacity: 1; color: #ffffff; max-width: 470px; margin: 0 0 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-right { position: relative; overflow: hidden; background: var(--bg-2); }
.hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-caption { position: absolute; left: 30px; bottom: 30px; background: rgba(253,253,251,0.94); backdrop-filter: blur(8px); padding: 18px 22px; border-radius: 2px; }
.hero-caption strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--teal-ink); font-weight: 400; }
.hero-caption span { font-size: 0.74rem; color: var(--grey); letter-spacing: 0.04em; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em; padding: 16px 30px; border-radius: 50px; transition: all 0.35s var(--ease); cursor: pointer; border: 1px solid transparent; }
.btn-light { background: var(--white); color: var(--teal-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.2); }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(23,121,127,0.28); }
.btn-line { border-color: var(--line); color: var(--teal-ink); }
.btn-line:hover { border-color: var(--teal); color: var(--teal); }

/* CREDENZIALI */
.creds-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.creds-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.cred:last-child { border-right: 0; }
.cred strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--teal-ink); line-height: 1.3; }
.cred span { font-size: 0.72rem; color: var(--grey); letter-spacing: 0.08em; text-transform: uppercase; }

/* SEZIONI */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-2); }
.label { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 18px; }
.title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.12; color: var(--teal-ink); margin: 0 0 22px; letter-spacing: -0.01em; }
.title em { font-style: italic; color: var(--teal); }
.lead { font-size: 1.05rem; color: var(--grey); max-width: 620px; }

/* CHI SONO */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.statement { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.3; color: var(--teal-ink); border-left: 2px solid var(--teal); padding-left: 32px; margin: 0; }
.statement em { color: var(--teal); }
.about-text p { color: var(--grey); margin: 0 0 20px; }
.about-text p strong { color: var(--text); font-weight: 600; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--teal); margin-top: 26px; }

/* AREE */
.areas-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 60px; }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--teal-ink); }
.area { padding: 40px 30px 44px 0; border-right: 1px solid var(--line); }
.area + .area { padding-left: 30px; }
.area:last-child { border-right: 0; }
.area summary { list-style: none; pointer-events: none; }
.area summary::-webkit-details-marker { display: none; }
.area-n { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: 0.06em; color: var(--teal); margin-bottom: 14px; }
.area h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--teal-ink); margin: 0 0 20px; }
.area ul { list-style: none; margin: 0; padding: 0; }
.area li { font-size: 0.9rem; color: var(--grey); padding: 7px 0; border-bottom: 1px solid var(--line); }
.area li:last-child { border-bottom: 0; }

/* CITAZIONE */
.quote-band { background: var(--teal-deep); color: var(--white); padding: 130px 0; text-align: center; position: relative; overflow: hidden; }
.quote-band::before { content: "“"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 26rem; line-height: 1; color: rgba(255,255,255,0.05); }
.quote-band blockquote { position: relative; font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.35; max-width: 900px; margin: 0 auto 28px; }
.quote-band cite { position: relative; font-style: normal; font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.7; }

/* PERCORSO */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 64px; }
.step-n { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--teal); opacity: 0.25; margin-bottom: 18px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--teal-ink); margin: 0 0 12px; }
.step p { color: var(--grey); margin: 0; font-size: 0.95rem; }

/* RECENSIONI */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 64px; }
.review { background: var(--paper); padding: 44px 36px; display: flex; flex-direction: column; border-top: 3px solid var(--teal); }
.review .stars { color: var(--teal); letter-spacing: 4px; font-size: 0.9rem; margin-bottom: 22px; }
.review blockquote { font-family: var(--read); font-style: italic; font-size: 1.02rem; line-height: 1.75; color: var(--text); margin: 0 0 28px; flex: 1; }
.review cite { font-style: normal; font-size: 0.82rem; color: var(--teal-ink); font-weight: 600; }
.review cite span { display: block; color: var(--grey); font-weight: 400; font-size: 0.74rem; margin-top: 2px; }
.reviews-foot { margin-top: 44px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.reviews-foot p { margin: 0; color: var(--grey); font-size: 0.9rem; }
.reviews-foot strong { color: var(--teal-ink); }

/* CONTATTI */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
.info { padding: 22px 0; border-bottom: 1px solid var(--line); }
.info:first-of-type { border-top: 1px solid var(--line); }
.info-l { font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 4px; }
.info-v { font-family: var(--serif); font-size: 1.3rem; color: var(--teal-ink); }
.info-v a:hover { color: var(--teal); }
.contact-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.map-wrap { display: block; position: relative; min-height: 440px; overflow: hidden; background: var(--bg-2); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.02); }
/* mappa caricata solo al clic: niente cookie Google senza consenso */
.map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px;
  background: repeating-linear-gradient(0deg, transparent 0 52px, rgba(23,121,127,0.09) 52px 53px), repeating-linear-gradient(90deg, transparent 0 52px, rgba(23,121,127,0.09) 52px 53px), var(--bg-2); }
.map-pin { width: 34px; height: 34px; background: var(--teal); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 8px 18px rgba(13,77,82,0.28); }
.map-addr { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; color: var(--teal-ink); margin: 0; }
.map-ext { font-family: var(--sans); font-size: 0.84rem; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.map-ph small { font-family: var(--sans); font-size: 0.72rem; color: var(--grey); }

/* FINALE */
.final { display: grid; grid-template-columns: 1fr 1fr; background: var(--teal); color: var(--white); }
.final-img { min-height: 460px; background: url("../assets/brand.jpg") center / cover no-repeat; }
.final-text { padding: 100px var(--px); display: flex; flex-direction: column; justify-content: center; }
.final-text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 3.8vw, 3.1rem); line-height: 1.15; margin: 0 0 22px; }
.final-text h2 em { color: #d9f2f0; }
.final-text p { opacity: 1; max-width: 440px; margin: 0 0 36px; }

.site-footer { background: var(--teal-ink); color: rgba(255,255,255,0.6); font-size: 0.74rem; padding: 34px var(--px); text-align: center; letter-spacing: 0.02em; }
.site-footer .mono { color: rgba(255,255,255,0.85); margin-bottom: 10px; }
.site-footer > div + div { margin-top: 8px; }
.site-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .credit { opacity: 0.85; font-size: 0.7rem; }

/* WHATSAPP (sopra il badge Netlify) */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: inline-flex; align-items: center; gap: 9px; background: var(--wa); color: #fff; font-weight: 600; font-size: 0.84rem; padding: 14px 22px; border-radius: 60px; box-shadow: 0 8px 26px rgba(37,211,102,0.35); transition: transform 0.3s; }
.wa-float:hover { transform: translateY(-3px); }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .area:nth-child(2) { border-right: 0; }
  .area:nth-child(3) { padding-left: 0; }
  .area:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { height: 70vh; order: -1; }
  .hero-left { padding-top: 70px; }
  .site-header { color: var(--teal-ink); background: rgba(247,246,242,0.96); padding: 12px 0; box-shadow: 0 1px 0 var(--line); }
  .site-header .nav-cta { background: var(--teal); border-color: var(--teal); color: #fff; }
  .hero-right { margin-top: 64px; }
  .creds-bar .container { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .cred:nth-child(2) { border-right: 0; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about, .contact, .final { grid-template-columns: 1fr; gap: 50px; }
  .steps, .reviews { grid-template-columns: 1fr; gap: 30px; }
  .final-img { min-height: 300px; }
  .section { padding: 90px 0; }
}
@media (max-width: 768px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px; background: var(--bg); color: var(--teal-ink); display: none; box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .areas { grid-template-columns: 1fr; }
  .area, .area + .area { padding: 34px 0; border-right: 0; }
  .area + .area { border-top: 1px solid var(--line); }
  .hero-caption { left: 16px; bottom: 16px; }
  .wa-float { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 0.8rem; }
}

/* ANIMAZIONI */
/* solo con JS attivo: se lo script non parte, i contenuti restano visibili */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.32s; } .d4 { transition-delay: 0.44s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes zoomOut { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-text > * { animation: rise 1s var(--ease) both; }
.hero-text > *:nth-child(2) { animation-delay: 0.15s; } .hero-text > *:nth-child(3) { animation-delay: 0.3s; } .hero-text > *:nth-child(4) { animation-delay: 0.45s; }
.hero-right img { animation: zoomOut 2.2s var(--ease) both; }
.hero-caption { animation: rise 1s var(--ease) 0.8s both; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal, .hero-text > *, .hero-right img, .hero-caption { opacity: 1; transform: none; animation: none; transition: none; } }

/* ===== LEGGIBILITÀ ===== */
/* Bodoni in versione "testo": tratti sottili più robusti, resta elegante ma si legge */
.mono, .brand-name, .hero h1, .hero-caption strong, .cred strong, .title, .statement, .signature,
.area-n, .area h3, .quote-band blockquote, .step-n, .step h3, .info-v, .final-text h2 {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 11;
}
.statement { font-weight: 500; line-height: 1.35; }
.quote-band blockquote { font-weight: 500; }

/* Elementi di interfaccia restano in Inter */
.nav, .btn, .label, .kicker, .brand-name small, .cred span, .hero-caption span, .info-l,
.review cite, .reviews-foot p, .site-footer, .area li, .wa-float, .quote-band cite { font-family: var(--sans); }
.area li { font-family: var(--read); font-size: 0.98rem; }

/* Evidenziazioni per dare ritmo al testo */
mark { background: linear-gradient(transparent 58%, rgba(23, 121, 127, 0.2) 58%); color: var(--teal-ink); padding: 0 2px; font-weight: 500; }
.hero-left mark, .final-text mark, .quote-band mark { background: linear-gradient(transparent 60%, rgba(255, 255, 255, 0.22) 60%); color: #fff; }
.about-text p, .lead, .step p { font-size: 1.05rem; }
.about-text p:first-child::first-letter { font-family: var(--serif); font-variation-settings: "opsz" 11; float: left; font-size: 3.6rem; line-height: 0.9; padding: 6px 10px 0 0; color: var(--teal); }

/* menu che sparisce scorrendo in giù */
.site-header { transition: transform 0.45s var(--ease), padding 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease); }
.site-header.hide { transform: translateY(-100%); }

/* ===== AGGIUNTE (linee guida ottobre 2026) ===== */

/* CTA intermedie discrete */
.mid-cta { margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.mid-cta p { margin: 0; font-style: italic; color: var(--teal-ink); }
.btn-sm { padding: 10px 22px; font-size: 0.8rem; background: var(--teal); color: #fff; border: 0; }
.btn-sm:hover { background: var(--teal-deep); }
.btn-sm-light { background: var(--white); color: var(--teal-deep); }
.btn-sm-light:hover { background: #d9f2f0; }

/* COME LAVORO */
.work { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; align-items: start; }
.work-item { padding: 30px 0; border-top: 1px solid var(--line); }
.work-item:last-child { border-bottom: 1px solid var(--line); }
.work-item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--teal-ink); margin: 0 0 10px; }
.work-item p { margin: 0; color: var(--grey); font-size: 1.05rem; }

/* PERCORSO: un curriculum editoriale su fondo petrolio */
.section-dark { background: var(--teal-ink); color: rgba(255,255,255,0.86); }
.section-dark .label { color: #9fd6d3; }
.section-dark .title { color: #fff; }
.section-dark .title em { color: #d9f2f0; }
.section-dark mark { background: linear-gradient(transparent 60%, rgba(255,255,255,0.22) 60%); color: #fff; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cv { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.18); }
.cv li { display: grid; grid-template-columns: 200px 1fr 1.3fr; gap: 30px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,0.12); transition: background 0.3s; }
.cv li:hover { background: rgba(255,255,255,0.03); }
.cv-k { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600; color: #9fd6d3; }
.cv .cv-k { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.02em; text-transform: none; font-weight: 500; white-space: nowrap; }
.cv h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.25; color: #fff; margin: 0; }
.cv p { margin: 0; font-size: 1rem; line-height: 1.7; }
.section-dark .mid-cta { border-top-color: rgba(255,255,255,0.18); }
.section-dark .mid-cta p { color: #d9f2f0; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 24px 44px 24px 0; font-family: var(--serif); font-size: 1.3rem; color: var(--teal-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; font-weight: 400; color: var(--teal); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 24px; color: var(--grey); }

/* privacy */
.legal { padding-top: 140px; max-width: 820px; }
.legal h2 { font-family: var(--serif); font-variation-settings: "opsz" 11; font-weight: 500; font-size: 1.5rem; color: var(--teal-ink); margin: 36px 0 10px; }
.legal p { color: var(--grey); }
.legal a { color: var(--teal); text-decoration: underline; }

/* Telefono: contatti che si chiudono verso destra scorrendo */
.fab { display: none; }

/* Bodoni leggibile e Inter per l'interfaccia anche nei nuovi blocchi */
.work-item h3, .cv h3, .cv .cv-k, .faq summary, .map-addr { font-optical-sizing: none; font-variation-settings: "opsz" 11; }
.mid-cta .btn, .map-ph .btn { font-family: var(--sans); }

@media (max-width: 900px) {
  .work, .faq-wrap { grid-template-columns: 1fr; gap: 30px; }
  .cv li { grid-template-columns: 1fr; gap: 6px; }
  .mid-cta { margin-top: 50px; }
}
@media (max-width: 768px) {
  /* aree a fisarmonica su telefono */
  .area summary { pointer-events: auto; cursor: pointer; display: flex; align-items: baseline; gap: 14px; position: relative; padding-right: 36px; }
  .area summary .area-n { margin: 0; font-size: 1.2rem; min-width: 34px; }
  .area summary h3 { margin: 0; }
  .area summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--teal); transition: transform 0.3s var(--ease); }
  .area[open] summary::after { transform: translateY(-50%) rotate(45deg); }
  .area[open] ul { margin-top: 16px; }
  .area, .area + .area { padding: 24px 0; }
  .fab { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; position: fixed; right: 16px; bottom: 84px; z-index: 200; }
  .fab-opts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
  .fab-opt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px; background: #fff; color: var(--teal-ink); font-family: var(--sans); font-weight: 600; font-size: 0.86rem; box-shadow: 0 8px 20px rgba(10,58,62,0.18);
    opacity: 0; transform: translateX(130%); transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.3s; }
  .fab-opt.wa { background: var(--wa); color: #fff; }
  .fab-opt:nth-child(1) { transition-delay: 0.05s; }
  .fab.open .fab-opts { pointer-events: auto; }
  .fab.open .fab-opt { opacity: 1; transform: none; }
  .fab-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: var(--teal); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,0.22); }
  .fab-btn svg { grid-area: 1 / 1; transition: transform 0.3s, opacity 0.3s; }
  .fab-btn .i-x { opacity: 0; transform: rotate(-90deg); }
  .fab.open .fab-btn .i-x { opacity: 1; transform: none; }
  .fab.open .fab-btn .i-chat { opacity: 0; transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .fab-opt { transition: none; } }

/* entrata discreta del pulsante contatti su telefono */
@media (max-width: 820px) {
  .fab { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.6s ease, transform 0.6s ease; }
  .fab.ready { opacity: 1; transform: none; pointer-events: auto; }
}

/* pulsanti dell'apertura più piccoli e discreti */
.btn-hero { padding: 12px 24px; font-size: 0.82rem; }

/* ===== ANIMAZIONI DELICATE ===== */

/* 1. parola che cambia nel titolo */
.swap { position: relative; display: inline-block; }
.swap .sizer { visibility: hidden; }
.swap b { position: absolute; left: 0; top: 0; font-weight: inherit; white-space: nowrap; opacity: 0; animation: swap 12s infinite; }
.swap b:nth-of-type(1) { animation-delay: 1.2s; }
.swap b:nth-of-type(2) { animation-delay: 4.2s; }
.swap b:nth-of-type(3) { animation-delay: 7.2s; }
.swap b:nth-of-type(4) { animation-delay: 10.2s; }
@keyframes swap { 0% { opacity: 0; transform: translateY(10px); filter: blur(4px); } 5% { opacity: 1; transform: none; filter: none; } 22% { opacity: 1; transform: none; filter: none; } 26% { opacity: 0; transform: translateY(-8px); filter: blur(4px); } 100% { opacity: 0; } }
html:not(.js) .swap b:nth-of-type(1) { opacity: 1; animation: none; }

/* 2. evidenziatore che si "stende" quando la frase entra in vista */
.js mark { background-size: 0% 100%; background-repeat: no-repeat; transition: background-size 1.2s var(--ease) .35s; }
.js mark.on { background-size: 100% 100%; }
.js .hero mark { transition-delay: 1.4s; }

/* 3. monogramma e foto con leggera profondità allo scorrimento */
.hero-left::after { transform: translateY(var(--py, 0px)); transition: transform .1s linear; }
.hero-right img { object-position: center calc(20% + var(--ip, 0px)); }

/* 4. stelle delle recensioni che si accendono una a una */
.cred .st { display: inline-block; opacity: .15; transform: scale(.6); transition: opacity .4s ease, transform .5s cubic-bezier(.3,1.6,.5,1); }
.cred.in .st { opacity: 1; transform: none; }
.cred.in .st:nth-child(1) { transition-delay: .5s; } .cred.in .st:nth-child(2) { transition-delay: .65s; } .cred.in .st:nth-child(3) { transition-delay: .8s; } .cred.in .st:nth-child(4) { transition-delay: .95s; } .cred.in .st:nth-child(5) { transition-delay: 1.1s; }

/* 5. citazione che compare parola per parola */
.quote-band blockquote .w { display: inline-block; opacity: 0; transform: translateY(14px); filter: blur(3px); transition: opacity .7s ease, transform .7s var(--ease), filter .7s ease; }
.quote-band blockquote.in .w { opacity: 1; transform: none; filter: none; }

/* 6. aree: le voci scendono una dopo l'altra */
.js .area li { opacity: 0; transform: translateX(-10px); transition: opacity .6s ease, transform .6s var(--ease); }
.js .area.in li { opacity: 1; transform: none; }
.js .area.in li:nth-child(2) { transition-delay: .1s; } .js .area.in li:nth-child(3) { transition-delay: .2s; } .js .area.in li:nth-child(4) { transition-delay: .3s; } .js .area.in li:nth-child(5) { transition-delay: .4s; } .js .area.in li:nth-child(6) { transition-delay: .5s; }

/* 7. percorso: ogni tappa entra da sinistra e la linea si traccia */
.cv li { position: relative; border-bottom-color: transparent; }
.cv li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: rgba(255,255,255,0.16); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease) .2s; }
.cv li.in::after, html:not(.js) .cv li::after { transform: scaleX(1); }
.js .cv li.reveal { transform: translateX(-26px); }
.js .cv li.reveal.in { transform: none; }

/* 8. chiusura: lento zoom sulla foto */
.final-img { position: relative; overflow: hidden; background: none; }
.final-img::before { content: ""; position: absolute; inset: 0; background: url("../assets/brand.jpg") center / cover no-repeat; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.5%, -1%); } }

/* 9. recensioni e card: lieve sollevamento al passaggio */
.review, .work-item { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.review:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,58,62,0.1); }

@media (prefers-reduced-motion: reduce) {
  .swap b { animation: none; opacity: 0; filter: none; }
  .swap b:nth-of-type(1) { opacity: 1; }
  .js mark { background-size: 100% 100%; transition: none; }
  .cred .st, .quote-band blockquote .w, .js .area li { opacity: 1; transform: none; filter: none; transition: none; }
  .cv li::after { transform: scaleX(1); transition: none; }
  .final-img::before { animation: none; }
  .hero-left::after { transform: none; }
}

/* sedi: link indicazioni */
.info-dir { display: inline-block; margin-top: 6px; font-family: var(--sans); font-size: 0.82rem; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.info-dir:hover { color: var(--teal-ink); }

/* spazio sotto il footer per il pulsante WhatsApp fisso */
.site-footer { padding-bottom: 90px; }

/* WhatsApp: tondo con solo il logo */
.wa-float { width: 60px; height: 60px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; }
.wa-float:hover { transform: scale(1.06); }
@media (max-width: 768px) { .wa-float { width: 56px; height: 56px; padding: 0; } }
/* niente alone: ombra corta e neutra (quella verde larga veniva ritagliata a rettangolo su iPhone), niente riquadro al tocco */
.wa-float { box-shadow: 0 3px 10px rgba(0,0,0,0.18); -webkit-tap-highlight-color: transparent; outline: none; }
.wa-float:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
