/* font caricati via <link rel="stylesheet" href="/assets/fonts/fonts.css"> nel <head> */

/* ===== Design tokens (dal sito originale Fit and Go) ===== */
:root {
  --teal: #24b5c5;       /* turchese brand — solo decorativo (icone, bordi, sfondi) */
  --teal-700: #1a93a1;
  --teal-900: #14707c;   /* turchese scuro — testo/accenti su sfondo chiaro (AA) */
  --btn-bg: #14707c;     /* fondo bottoni: bianco su questo = 5.77:1 (AA) in light e dark */
  --ink: #4b4747;
  --ink-soft: #6b6666;
  --white: #ffffff;
  --bg: #f4fbfc;
  --bg-alt: #eaf6f8;
  --surface: #ffffff;
  --line: #e2edee;
  --shadow-sm: 0 2px 10px rgba(20, 112, 124, .06);
  --shadow: 0 14px 40px rgba(20, 112, 124, .12);
  --shadow-lg: 0 30px 70px rgba(20, 112, 124, .18);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.2rem);
  --font-head: "Poppins", "Jockey One", system-ui, sans-serif; /* bold condensato, allineato al font del logo Fit and Go */
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .h {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  color: var(--ink);
}
h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--teal { background: linear-gradient(160deg, #14707c 0%, #0f6770 100%); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.eyebrow {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em;
  color: var(--teal-900); font-size: .82rem; margin-bottom: .7rem; display: inline-block;
}
.section--teal .eyebrow { color: #fff; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }
.section--teal .lead { color: rgba(255,255,255,.92); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  --b: var(--btn-bg);
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  font-size: .98rem; line-height: 1;
  padding: 1.05em 1.7em; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: var(--white); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn:hover { box-shadow: var(--shadow); }
.btn--lg { padding: 1.2em 2.2em; font-size: 1.08rem; }
.btn--ghost { background: transparent; color: var(--teal-900); }
.btn--white { background: var(--white); color: var(--teal-900); border-color: var(--white); }
@media (hover: hover) { .btn:hover { transform: translateY(-3px); } }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.nav__logo img { height: 48px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a { font-weight: 500; font-size: .98rem; position: relative; padding: .3rem 0; color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--teal); transition: width .25s var(--ease); }
.nav__links a:hover { color: var(--teal-900); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; min-width: 44px; min-height: 44px; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .3s; }
.nav__toggle span + span { margin-top: 5px; }

/* ===== Hero ===== */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle, rgba(36,181,197,.18), transparent 65%); z-index: 0; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
.hero h1 .accent { color: var(--teal-900); }
.hero__sub { margin: 1.2rem 0 1.8rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5em; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: .55em 1em;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm); color: var(--ink);
}
.badge svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero__pill { position: absolute; left: 6px; bottom: 22px; background: var(--white); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .7rem; }
.hero__pill strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--teal-900); display: block; line-height: 1; }
.hero__pill span { font-size: .8rem; color: var(--ink-soft); }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__media { max-width: 460px; margin-inline: auto; } }

/* ===== Feature rows / cards ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.split--rev .split__media { order: -1; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }

.checklist { list-style: none; display: grid; gap: .85rem; margin-top: 1.4rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.05rem; }
.checklist li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/15px no-repeat;
}
.section--teal .checklist li::before { background-color: var(--white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314707c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

/* mini cards (non siamo una palestra) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.5rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile__ic { width: 54px; height: 54px; border-radius: 14px; background: var(--bg-alt); display: grid; place-items: center; margin-bottom: 1rem; color: var(--teal-900); }
.tile__ic svg { width: 28px; height: 28px; }
.tile h3 { font-size: 1.2rem; margin-bottom: .5rem; }
@media (hover: hover) { .tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); } }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* ===== Tech cards ===== */
.tech { display: grid; gap: 2rem; margin-top: 3rem; }
.tech__card {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.4rem, 3vw, 3rem); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm);
}
.tech__card:nth-child(even) .tech__media { order: 1; }
.tech__media { position: relative; }
.tech__media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; object-position: center 28%; width: 100%; }
.tech__tag { display: inline-flex; align-items: center; gap: .5em; background: var(--bg-alt); color: var(--teal-900); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; padding: .4em .9em; border-radius: 999px; font-size: .85rem; margin-bottom: .7rem; }
.tech__meta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.tech__note { font-size: .95rem; color: var(--ink-soft); margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
@media (max-width: 820px) { .tech__card { grid-template-columns: 1fr; } .tech__card:nth-child(even) .tech__media { order: 0; } }

/* play overlay (video placeholder) */
.play { position: relative; cursor: pointer; }
.play::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: rgba(20,112,124,.28); transition: background .3s; }
.play__btn { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: var(--shadow); z-index: 2; }
.play__btn svg { width: 26px; height: 26px; color: var(--teal); margin-left: 3px; }
.play__lbl { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(0,0,0,.55); color:#fff; font-size:.78rem; padding:.3em .7em; border-radius:999px; }
@media (hover: hover) { .play:hover::after { background: rgba(20,112,124,.12); } }

/* ===== Reviews ===== */
.reviews__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.rating { display: flex; align-items: center; gap: .9rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.4rem; box-shadow: var(--shadow-sm); }
.rating__num { font-family: var(--font-head); font-size: 2.4rem; color: var(--ink); line-height: 1; }
.stars { color: #c2740a; letter-spacing: 2px; font-size: 1.05rem; }
.rating small { color: var(--ink-soft); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.5rem; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .8rem; }
.review__top { display: flex; align-items: center; gap: .7rem; }
.review__av { width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.1rem; }
.review__name { font-weight: 600; }
.review__src { font-size: .78rem; color: var(--ink-soft); display: flex; align-items: center; gap: .3em; }
.review p { font-size: .96rem; color: var(--ink-soft); }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* ===== Pricing ===== */
.price-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; border: 1px solid var(--line); }
.price-card__tag { text-align: center; }
.price-card__from { font-size: .9rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }
.price-card__num { font-family: var(--font-head); font-size: clamp(3.2rem, 9vw, 5rem); color: var(--teal-900); line-height: .9; }
.price-card__unit { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; text-align: center; } .price-card .checklist { text-align: left; } }

/* ===== Locations ===== */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 3rem; }
.loc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .8rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.loc__name { font-family: var(--font-head); text-transform: uppercase; font-size: 1.3rem; color: var(--teal-900); }
.loc__addr { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); font-weight: 500; }
.loc__addr svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
.loc__hours { font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: .8rem; margin-top: auto; }
.loc__hours b { color: var(--ink); }
.loc a.maplink { font-weight: 600; color: var(--teal-900); font-size: .9rem; display: inline-flex; gap: .3em; align-items: center; }
@media (hover: hover) { .loc:hover { transform: translateY(-6px); box-shadow: var(--shadow); } }
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr; } }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 2.5rem; }
.gallery img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease); }
@media (hover: hover) { .gallery img:hover { transform: scale(1.04); } }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ===== FAQ ===== */
.faq { max-width: 860px; margin: 3rem auto 0; display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 1.6rem; color: var(--teal); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: .98rem; }

/* ===== Form ===== */
.bookwrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.book-intro ul { list-style: none; display: grid; gap: .7rem; margin: 1.4rem 0; }
.book-intro li { display: flex; gap: .7rem; align-items: flex-start; }
.book-intro li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; background: rgba(255,255,255,.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }
.form { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); color: var(--ink); }
.form .row { display: grid; gap: 1rem; }
.form .row.two { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: .8em .9em; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-900); box-shadow: 0 0 0 3px rgba(20,112,124,.4); background: #fff; }
.field--check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field--check input { width: auto; margin-top: 4px; }
.field--check label { font-size: .8rem; font-weight: 400; color: var(--ink-soft); }
.form__note { font-size: .8rem; color: var(--ink-soft); margin-top: .6rem; text-align: center; }
@media (max-width: 860px) { .bookwrap { grid-template-columns: 1fr; } .form .row.two { grid-template-columns: 1fr; } }

/* ===== Floating WhatsApp ===== */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: .6rem; background: #0e7a38; color: #fff; padding: .8em 1.1em; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; transition: transform .25s var(--ease); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float .wa-txt { display: none; }
@media (hover: hover) { .wa-float:hover { transform: scale(1.05); } }
@media (min-width: 760px) { .wa-float .wa-txt { display: inline; } }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer img.flogo { height: 54px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer h3 { font-family: var(--font-head); text-transform: uppercase; color: #fff; font-size: 1rem; letter-spacing: .08em; margin-bottom: 1rem; }
.footer a:hover { color: #7fd3de; }
.footer ul { list-style: none; display: grid; gap: .5rem; font-size: .92rem; }
.footer__hours { font-size: .82rem; line-height: 1.7; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; color: rgba(255,255,255,.78); }
.footer__disc { font-size: .76rem; color: rgba(255,255,255,.72); margin-top: 1rem; max-width: 70ch; }
.footer__bottom a { color: rgba(255,255,255,.75); }
.hive-credit a { color: #7fd3de; font-weight: 600; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* placeholder evidente per dati mancanti */
.todo { background: #fff7ed; color: #9a3412; border: 1px dashed #fb923c; border-radius: 6px; padding: 0 .35em; font-size: .9em; font-weight: 600; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: .7em 1em; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* =========================================================
   v2 — Dark mode, dinamismo, header mobile rifatto
   ========================================================= */

:root { color-scheme: light; }
html { transition: background .4s ease; }
body, .header, .tile, .review, .loc, .faq details, .badge, .rating, .form,
.price-card, .hero__pill, .stat, .field input, .field select, .field textarea {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease;
}

/* ---- Tema scuro ---- */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e9f3f4;
  --ink-soft: #a6babb;
  --bg: #0c1416;
  --bg-alt: #101e20;
  --surface: #152427;
  --line: #25393c;
  --teal-900: #5fd6e3;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.4);
  --shadow: 0 14px 40px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .badge,
[data-theme="dark"] .rating,
[data-theme="dark"] .form,
[data-theme="dark"] .price-card,
[data-theme="dark"] .hero__pill { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .header { background: rgba(12,20,22,.82); }
[data-theme="dark"] .header.is-scrolled { border-color: var(--line); }
[data-theme="dark"] .badge { color: var(--ink); }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea { background: #0d1a1c; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .btn--white { background: var(--surface); color: var(--ink); border-color: var(--surface); }
[data-theme="dark"] .price-card__num { color: var(--teal-900); }
[data-theme="dark"] .hero::before { opacity: .5; }
[data-theme="dark"] .stat__num { color: var(--teal-900); }
[data-theme="dark"] .review[style*="dashed"] { background: var(--bg-alt) !important; }
[data-theme="dark"] .footer { background: #07100f; }

/* ---- Theme toggle ---- */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: transform .25s var(--ease), border-color .2s, background .2s; flex: none;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
@media (hover: hover) { .theme-toggle:hover { transform: rotate(18deg) scale(1.06); border-color: var(--teal); } }

/* ---- Scroll progress bar ---- */
.scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--teal), #3ad0e0); transition: width .1s linear; }

/* ---- Marquee ---- */
.marquee { background: var(--btn-bg); color: #fff; overflow: hidden; padding: .7rem 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 1.4rem; align-items: center; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; animation: marquee 26s linear infinite; will-change: transform; }
.marquee .dot { opacity: .6; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---- Stats ---- */
.stats { padding: clamp(2.2rem, 5vw, 3.2rem) 0; background: var(--bg); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 1.2rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--teal-900); line-height: 1; }
.stat__lbl { font-size: .9rem; color: var(--ink-soft); margin-top: .4rem; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; } }

/* ---- Sedi a 2 colonne ---- */
.loc-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
@media (max-width: 760px) { .loc-grid--2 { grid-template-columns: 1fr; } }

/* ---- Dinamismo: hero cascade + float ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { opacity: 0; animation: rise .8s var(--ease) forwards; }
  .hero__copy h1 { animation-delay: .05s; }
  .hero__copy .hero__sub { animation-delay: .18s; }
  .hero__copy .hero__badges { animation-delay: .3s; }
  .hero__copy > .btn { animation-delay: .42s; }
  .hero__media { animation: rise .9s var(--ease) .25s both; }
  .hero__media img { animation: floaty 6s ease-in-out 1.2s infinite; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
}

/* heading accent underline */
.section h2, .hero h1 { position: relative; }
.center h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--teal); margin: .9rem auto 0; transform: scaleX(0); transform-origin: center; transition: transform .6s var(--ease) .1s; }
.center .reveal h2::after, .reveal.center h2::after { transform: scaleX(0); }
.is-visible h2::after, .section.is-visible h2::after { transform: scaleX(1); }
.center h2 { } /* underline animates when section becomes visible via .is-visible on section */

/* button shine */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
@media (hover: hover) { .btn:hover::after { left: 130%; } }

/* animated gradient sulla sezione teal */
.section--teal { background: linear-gradient(130deg, #14707c 0%, #0f6770 45%, #0c5e68 100%); background-size: 180% 180%; }
@media (prefers-reduced-motion: no-preference) { .section--teal { animation: tealshift 14s ease infinite; } }
@keyframes tealshift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* tech card hover lift */
@media (hover: hover) { .tech__card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); } .tech__card:hover { transform: translateY(-5px); box-shadow: var(--shadow); } }

/* =========================================================
   Header mobile rifatto (overlay a tutta altezza)
   ========================================================= */
.nav__backdrop { position: fixed; inset: 0; background: rgba(6,14,16,.55); backdrop-filter: blur(2px);
  z-index: 75; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav__backdrop.is-open { opacity: 1; pointer-events: auto; }
.nav__menu-cta { display: none; }

@media (min-width: 981px) {
  .nav__backdrop { display: none; }
}

@media (max-width: 980px) {
  .nav__menu {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(85vw, 350px); height: 100dvh; background: var(--surface);
    display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 0;
    padding: 5.5rem 2rem 2.5rem; box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .4s var(--ease); z-index: 80;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { padding: 1.05rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .nav__links a::after { display: none; }
  .nav__menu-cta { display: inline-flex; margin-top: 1.6rem; }
  .nav__cta .btn--book { display: none; }
  .nav__toggle { display: block; position: relative; z-index: 90; }
  /* hamburger -> X */
  .nav__toggle span { transition: transform .3s var(--ease), opacity .2s; transform-origin: center; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
body.menu-lock { overflow: hidden; }

/* =========================================================
   v3 — Fix QA: focus tastiera (WCAG 2.4.7/2.4.11) + reduced motion completo
   ========================================================= */
:focus-visible { outline: 3px solid var(--teal-900); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 3px; }
[data-theme="dark"] :focus-visible { outline-color: #7fe3ee; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__media img, .marquee__track { animation: none !important; }
}

/* =========================================================
   v6 — Registro Firma misurato (Direzione A scelta da Boris)
   Typo-hero, righe numerate, blocchi asimmetrici, video-wall,
   bigfoot. Vivono soprattutto in [data-theme="dark"] (default).
   ========================================================= */

/* --- meta-row + eyebrow mono, scroll-hint --- */
.mono { font-family: "SF Mono", Menlo, monospace; }
.meta-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding: .3rem 0 0; }
.scroll-hint { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); text-align: center; padding: 0 0 1.6rem; }

/* --- Hero typo grande (registro Firma) --- */
.hero--firma { min-height: 92vh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); padding-top: .5rem; }
.hero--firma > .container { min-width: 0; }
.meta-row, .hero-sub { min-width: 0; }
.meta-row span, .hero--firma .eyebrow { min-width: 0; overflow-wrap: break-word; }
.hero--firma .hero-core { align-self: center; padding: 4vh 0; }
.hero--firma .eyebrow { display: block; margin-bottom: 2rem; }
.hero--firma .display {
  font-family: var(--font-head); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.4rem, 11vw, 9.5rem); line-height: .88; letter-spacing: -.01em; margin: 0;
}
.hero--firma .display .l2 { color: var(--teal); }
[data-theme="dark"] .hero--firma .display .l2 { color: transparent; -webkit-text-stroke: 1.5px var(--teal); }
.hero--firma .hero-sub { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-top: 4vh; }
.hero--firma .hero-sub p { max-width: 38ch; font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* --- Righe numerate (metodo, servizi...) niente card fotocopiate --- */
.rows { margin-top: 2.6rem; }
.rows-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.rows-head .meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.rowlist { list-style: none; margin: 0; padding: 0; }
.rowitem {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1.4rem; align-items: baseline;
  padding: 1.7rem .3rem; border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), padding-left .35s var(--ease);
}
@media (hover: hover) { .rowitem:hover { background: var(--bg-alt); padding-left: 1.1rem; } }
.rowitem .n { font-size: 12px; color: var(--teal-900); font-weight: 700; }
.rowitem h3 { margin: 0 0 .4rem; font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
.rowitem p { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }
.rowitem .arr { font-size: 1.3rem; color: var(--teal-900); opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease); }
@media (hover: hover) { .rowitem:hover .arr { opacity: 1; transform: none; } }
@media (max-width: 640px) { .rowitem { grid-template-columns: 40px 1fr; } .rowitem .arr { display: none; } }

/* --- Blocchi asimmetrici (sec): testo + visual che sborda --- */
.sec { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.6rem; align-items: center; padding: 3rem 0; }
.sec .sec__num { grid-column: 1 / 3; font-size: 12px; color: var(--teal-900); font-weight: 700; letter-spacing: .1em; align-self: start; padding-top: .3rem; }
.sec .sec__txt { grid-column: 3 / 8; }
.sec .sec__visual { grid-column: 8 / 13; }
.sec--rev .sec__txt { grid-column: 6 / 11; order: 2; }
.sec--rev .sec__visual { grid-column: 1 / 6; order: 1; }
.sec--rev .sec__num { order: 0; }
.sec h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; margin-bottom: 1.1rem; }
.sec p { color: var(--ink-soft); max-width: 48ch; }
.sec__visual { position: relative; border-radius: 4px; overflow: hidden; transform: rotate(-.6deg); box-shadow: var(--shadow); }
.sec--rev .sec__visual { transform: rotate(.6deg); }
.sec__visual > video, .sec__visual > img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/5; }
.sec__visual .tech__media { height: 100%; }
.sec__visual .tech__media img { aspect-ratio: 4/5; height: 100%; }
@media (max-width: 860px) {
  .sec, .sec--rev { grid-template-columns: 1fr; }
  .sec .sec__num, .sec .sec__txt, .sec .sec__visual,
  .sec--rev .sec__num, .sec--rev .sec__txt, .sec--rev .sec__visual { grid-column: 1 / -1; order: 0; }
  .sec__visual, .sec--rev .sec__visual { transform: none; }
}

/* --- Video-wall: testimonianze video, sfalsate (non griglia identica) --- */
.vwall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.8rem; align-items: start; }
.vwall__item:nth-child(2) { margin-top: 3rem; }
.vwall__item:nth-child(3) { margin-top: 1rem; }
.vwall__frame { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 9/16; box-shadow: var(--shadow); cursor: pointer; }
.vwall__frame img { width: 100%; height: 100%; object-fit: cover; }
.vwall__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
.vwall__play svg { width: 52px; height: 52px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.vwall__cap { padding: .9rem .2rem 0; }
.vwall__cap b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.vwall__cap span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 860px) { .vwall { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } .vwall__item:nth-child(2), .vwall__item:nth-child(3) { margin-top: 1.6rem; } }

/* --- Video modal (riusa .play esistente per tech) --- */
.vmodal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(6,10,11,.92); padding: 4vh 4vw; }
.vmodal.is-open { display: flex; }
.vmodal video { max-width: min(92vw, 480px); max-height: 90vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.vmodal__close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* --- Bigfoot: chiusura firmata --- */
.bigfoot { padding: 6vh 0 3vh; border-top: 1px solid var(--line); }
.bigfoot__cta { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; margin: 0 0 4vh; }
.bigfoot__cta a { color: var(--teal-900); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .25s; }
.bigfoot__cta a:hover { border-color: var(--teal-900); }
.bigfoot__giant {
  font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: clamp(3.2rem, 15vw, 11rem);
  line-height: .82; margin: 0; color: transparent; -webkit-text-stroke: 1.5px var(--line); user-select: none;
}
[data-theme="dark"] .bigfoot__giant { -webkit-text-stroke: 1.5px #24343699; }

/* Recensioni: tag categoria */
.review__tag { display: inline-block; margin-top: .6rem; }

@media (prefers-reduced-motion: reduce) { .rowitem, .sec__visual, .bigfoot__cta a { transition: none !important; } }

/* --- Mobile: bottoni e banner staging non devono tagliarsi --- */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .btn--lg { font-size: .92rem; padding: 1.05em 1.4em; }
  .staging-flag { font-size: 10.5px; line-height: 1.4; padding: .45rem .8rem; }
}
