/* =====================================================================
   Template barbieri & parrucchieri — Matteo Casasole
   Moderno, minimale, compatto. Colori e forme da variabili (iniettate dal generatore).
   ===================================================================== */

@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* palette (sovrascritta dal generatore) */
  --bg: #faf7f2; --surface: #ffffff; --surface-2: #f1ebe1; --line: #e8e1d5;
  --ink: #1b2436; --muted: #5e6577;
  --accent: #f2a93c; --on-accent: #1b2436; --accent-soft: #fdf1dd;
  --dark: #1b2436; --dark-2: #243049; --on-dark: #faf7f2; --muted-dark: #b9bfcc;
  /* forma */
  --r-lg: 24px; --r-md: 16px; --r-sm: 10px; --r-btn: 999px;
  --wrap: 1240px; --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 128px);
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(10, 15, 30, .05), 0 18px 40px -18px rgba(10, 15, 30, .22);
}
html[data-raggio="netto"] { --r-lg: 6px; --r-md: 6px; --r-sm: 4px; --r-btn: 6px; }
html[data-raggio="morbido"] { --r-lg: 16px; --r-md: 12px; --r-sm: 8px; --r-btn: 12px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.035em; line-height: 1.02; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; font-weight: 650; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.accent-text { color: var(--accent); }
.on-dark .lead, .on-dark .muted { color: var(--muted-dark); }
.muted { color: var(--muted); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 48px; } }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-btn); font: 600 1rem/1 var(--body); border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 28px -12px var(--accent); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--line { border-color: color-mix(in srgb, currentColor 30%, transparent); }
.btn--line:hover { border-color: currentColor; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1.5px solid color-mix(in srgb, currentColor 30%, transparent); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: currentColor; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, color .35s, transform .35s var(--ease); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.hdr.is-solid { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.12rem/1.1 var(--head); letter-spacing: -0.02em; min-width: 0; }
.logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); flex: none; position: relative; }
.logo i::after { content: ""; position: absolute; inset: 8px 8px auto 8px; height: 4px; border-radius: 2px; background: var(--on-accent); box-shadow: 0 6px 0 var(--on-accent), 0 12px 0 var(--on-accent); width: 14px; }
.nav { display: none; gap: 28px; margin-left: auto; font-weight: 500; font-size: .96rem; }
.nav a { opacity: .8; transition: opacity .2s; position: relative; }
.nav a:hover { opacity: 1; }
.hdr .btn { margin-left: auto; }
@media (min-width: 980px) { .nav { display: flex; } .hdr .btn { margin-left: 8px; } }
@media (max-width: 520px) { .hdr .btn { padding: 0 14px; min-height: 42px; font-size: .9rem; } .hdr .btn svg { display: none; } .hdr .wrap { gap: 12px; height: 66px; } }
/* header sopra una hero scura: testo chiaro finché non diventa solido */
html[data-hdr="chiaro"] .hdr:not(.is-solid) { color: #fff; }

/* ---------- sezioni ---------- */
.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: clamp(48px, 6vw, 80px); }
.sec--alt { background: var(--surface-2); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec--dark .eyebrow { color: var(--muted-dark); }

/* ---------- HERO: foto a tutta larghezza ---------- */
.hero { position: relative; }
.hero--foto { min-height: min(100svh, 920px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; padding: 140px 0 clamp(48px, 7vw, 88px); background: var(--dark); }
.hero--foto .hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero--foto .hero__bg img { width: 100%; height: 115%; object-fit: cover; }
.hero--foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,12,22,.25) 0%, rgba(8,12,22,.35) 40%, rgba(8,12,22,.85) 100%); }
.hero--foto .hero__grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 980px) { .hero--foto .hero__grid { grid-template-columns: 1.5fr .7fr; } }
.hero--foto .lead { color: rgba(255,255,255,.82); }
.hero--foto .eyebrow, .hero--centro .eyebrow { color: rgba(255,255,255,.78); }
.hero--foto .btn--line { color: #fff; }

/* ---------- HERO: split con carosello ---------- */
.hero--split { padding: 128px 0 clamp(56px, 7vw, 96px); }
.hero--split .hero__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero--split .hero__grid { grid-template-columns: 1fr 1.05fr; } }
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero--split h1 { font-size: clamp(2.4rem, 4.8vw, 4.3rem); }
.hero__media { position: relative; }

/* ---------- HERO: centrata, scura, con nastro di foto ---------- */
.hero--centro { background: var(--dark); color: var(--on-dark); padding: 150px 0 0; text-align: center; overflow: hidden; }
.hero--centro .hero__copy { justify-items: center; margin-inline: auto; max-width: 920px; }
.hero--centro .lead { color: var(--muted-dark); margin-inline: auto; }
.hero--centro .btn--line { color: var(--on-dark); }
.hero--centro .strip { margin-top: clamp(48px, 6vw, 72px); }

/* ---------- elementi hero ---------- */
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; font-size: .9rem; font-weight: 500; background: color-mix(in srgb, currentColor 8%, transparent); border: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.chip b { font-weight: 700; }
.stars { color: #f5b301; letter-spacing: 1px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd47a; box-shadow: 0 0 0 0 rgba(47,212,122,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(47,212,122,0); } 100% { box-shadow: 0 0 0 0 rgba(47,212,122,0); } }
.demo { font-size: .88rem; opacity: .8; }
.demo a { text-decoration: underline; text-underline-offset: 3px; }
.float { position: absolute; left: clamp(-24px, -2vw, -12px); bottom: 28px; z-index: 3; background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 280px; }
.float strong { font: 700 1.9rem/1 var(--head); letter-spacing: -0.03em; }
.float small { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 979px) { .float { left: 12px; bottom: 12px; } }

/* ---------- carosello a dissolvenza ---------- */
.fade { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--surface-2); }
.fade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 6s linear; }
.fade img.is-on { opacity: 1; transform: scale(1); }
.fade img:first-child { opacity: 1; }
.js .fade img:first-child:not(.is-on) { opacity: 0; }
.fade__bars { position: absolute; left: 20px; right: 20px; top: 20px; z-index: 2; display: flex; gap: 6px; }
.fade__bars button { flex: 1; height: 3px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; overflow: hidden; position: relative; }
.fade__bars button i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.fade__bars button.is-done i { transform: scaleX(1); }
@media (max-width: 979px) { .fade { aspect-ratio: 4 / 3.2; } }

/* ---------- nastro di foto (marquee) ---------- */
.strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip__track { display: flex; gap: 16px; width: max-content; animation: scorri 50s linear infinite; padding-bottom: clamp(48px, 6vw, 80px); }
.strip:hover .strip__track { animation-play-state: paused; }
.strip figure { margin: 0; width: clamp(240px, 28vw, 380px); aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; flex: none; }
.strip figure:nth-child(even) { aspect-ratio: 4 / 3.4; align-self: flex-end; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@keyframes scorri { to { transform: translateX(-50%); } }

/* ---------- nastro di parole ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg); }
.ticker__track { display: flex; width: max-content; animation: scorri 38s linear infinite; }
.ticker span { font: 700 clamp(1.4rem, 3vw, 2.2rem)/1 var(--head); letter-spacing: -0.03em; padding-right: 40px; display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.ticker span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.ticker span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }

/* ---------- servizi: griglia di card ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.card__body p { color: var(--muted); font-size: .98rem; }
.card__n { font: 600 .8rem/1 var(--body); color: var(--muted); letter-spacing: .08em; }

/* ---------- servizi: bento ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
  .bento .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bento .tile:nth-child(4) { grid-column: span 2; }
}
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 240px; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(5,8,15,.82) 100%); }
.tile:hover img { transform: scale(1.07); }
.tile__body { padding: 24px; display: grid; gap: 6px; }
.tile__body p { color: rgba(255,255,255,.82); font-size: .96rem; }

/* ---------- servizi: slider orizzontale ---------- */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__nav { display: flex; gap: 10px; }
.slider__nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, transform .2s; }
.slider__nav button:hover { background: var(--ink); color: var(--bg); transform: scale(1.05); }
.slider__nav svg { width: 20px; height: 20px; }
.slider .card { height: 100%; }

/* ---------- prove (numeri) ---------- */
.proof { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof > div { background: var(--surface); padding: 28px 26px; display: grid; gap: 6px; }
.proof strong { font: 700 clamp(2rem, 3.6vw, 2.8rem)/1 var(--head); letter-spacing: -0.04em; }
.proof > div > span { color: var(--muted); font-size: .95rem; }

/* ---------- metodo: passi orizzontali ---------- */
.steps { display: grid; gap: 20px; position: relative; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps__line { display: none; }
@media (min-width: 900px) { .steps__line { display: block; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); } .steps__line i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(1); } }
.step { position: relative; display: grid; gap: 14px; align-content: start; }
.step__n { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 1.2rem/1 var(--head); position: relative; z-index: 1; }
.step__img { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; margin-top: 6px; }
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step p { color: var(--muted); }
.sec--dark .step p { color: var(--muted-dark); }

/* ---------- metodo: titolo fisso + passi ---------- */
.sticky { display: grid; gap: 40px; }
@media (min-width: 980px) { .sticky { grid-template-columns: .85fr 1.15fr; gap: 72px; } .sticky__head { position: sticky; top: 120px; align-self: start; } }
.sticky__head { display: grid; gap: 20px; align-content: start; }
.progress { height: 4px; border-radius: 2px; background: color-mix(in srgb, currentColor 14%, transparent); overflow: hidden; max-width: 280px; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(1); }
.sticky__list { display: grid; gap: 22px; }
.srow { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sec--dark .srow { background: var(--dark-2); border-color: transparent; }
@media (min-width: 640px) { .srow { grid-template-columns: 220px 1fr; align-items: center; } }
.srow__img { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; }
.srow__img img { width: 100%; height: 100%; object-fit: cover; }
.srow__body { display: grid; gap: 8px; }
.srow__n { font: 700 .85rem/1 var(--body); color: var(--accent); letter-spacing: .1em; }
.srow p { color: var(--muted); }
.sec--dark .srow p { color: var(--muted-dark); }

/* ---------- metodo: timeline alternata ---------- */
.tl { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); }
.tl::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl__fill { position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--accent); transform-origin: top; transform: scaleY(1); }
.tl__item { display: grid; gap: 20px; padding-left: 64px; position: relative; }
.tl__item::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 1rem/1 var(--head); }
.tl__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.tl__img img { width: 100%; height: 100%; object-fit: cover; }
.tl__item p { color: var(--muted); max-width: 52ch; }
@media (min-width: 900px) {
  .tl::before, .tl__fill { left: 50%; }
  .tl__item { grid-template-columns: 1fr 1fr; gap: 72px; padding-left: 0; align-items: center; }
  .tl__item::before { left: calc(50% - 21px); top: 50%; transform: translateY(-50%); }
  .tl__item:nth-child(odd) .tl__img { order: 2; }
  .tl__item:nth-child(odd) .tl__text { text-align: right; justify-items: end; }
  .tl__text { display: grid; gap: 10px; }
}

/* ---------- zona e contatti ---------- */
.zona { display: grid; gap: 24px; }
@media (min-width: 900px) { .zona { grid-template-columns: 1fr 1fr; } }
.zona__card { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 22px; align-content: start; }
.zona__card--dark { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.zona__img { border-radius: var(--r-lg); overflow: hidden; min-height: 320px; }
.zona__img img { width: 100%; height: 100%; object-fit: cover; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0; }
.hours dt { color: var(--muted); }
.zona__card--dark .hours dt { color: var(--muted-dark); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours-note { font-size: .82rem; opacity: .7; }
.contacts { display: grid; gap: 10px; }
.contacts a { font: 700 clamp(1.3rem, 2.4vw, 1.7rem)/1.2 var(--head); letter-spacing: -0.02em; }

/* ---------- FAQ (fisarmonica) ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font: 600 1.08rem/1.35 var(--head); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); flex: none; position: relative; transition: transform .35s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 1px; }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary i { background: var(--accent); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 24px 22px; color: var(--muted); max-width: 70ch; }
@media (min-width: 900px) { .faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .faq-wrap .sec-head { position: sticky; top: 120px; } }

/* ---------- chiusura ---------- */
.cta { border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); padding: clamp(40px, 6vw, 80px); display: grid; gap: 28px; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%); opacity: .55; }
.cta h2 { max-width: 16ch; }
.cta .lead { color: var(--muted-dark); }
.cta .btn--line { color: var(--on-dark); }
@media (min-width: 900px) { .cta { grid-template-columns: 1.3fr .7fr; align-items: end; } .cta .btns { justify-content: flex-end; } }

/* ---------- footer ---------- */
.ftr { padding: clamp(56px, 7vw, 88px) 0 calc(32px + var(--bar, 0px)); }
.ftr__top { display: grid; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .ftr__top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.ftr h3 { font: 600 .82rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr a:hover { color: var(--accent); }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-top: 24px; font-size: .88rem; color: var(--muted); }
.ftr__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- barra azioni (telefono) ---------- */
.bar { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
.bar.is-on { transform: none; }
.bar .btn { min-height: 48px; padding: 0 12px; }
body { --bar: 72px; }
@media (min-width: 900px) { .bar { display: none; } body { --bar: 0px; } }

/* ---------- pagine legali ---------- */
.legal { padding: 140px 0 40px; }
.legal .wrap { max-width: 780px; display: grid; gap: 16px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal h2 { font-size: 1.4rem; margin-top: 20px; }
.legal p, .legal li { color: var(--muted); }
.legal a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- animazioni: stato iniziale solo con JS attivo e movimento consentito ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-a="su"], .js [data-a-figli] > * { opacity: 0; transform: translateY(28px); }
  .js [data-a="foto"] { clip-path: inset(100% 0 0 0); }
  .js .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  .js .w > span { display: inline-block; transform: translateY(105%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip__track, .ticker__track, .dot { animation: none !important; }
  * { transition: none !important; }
}

/* riga del carosello servizi: contatore a sinistra, frecce a destra, subito sopra le card */
.slider__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.slider__count { font: 600 .95rem/1 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.slider__count b { color: var(--ink); font-weight: 700; }
.slider__nav button:disabled { opacity: .35; cursor: default; transform: none; }

/* =====================================================================
   VARIANTI GRAFICHE delle sezioni ripetute (scelte dal generatore per sito)
   ===================================================================== */

/* numeri: fascia scura a tutta larghezza */
.proof-band { background: var(--dark); color: var(--on-dark); padding: clamp(44px, 6vw, 72px) 0; }
.proof-band__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .proof-band__grid { grid-template-columns: repeat(4, 1fr); } }
.proof-band strong { display: block; font: 800 clamp(2.4rem, 4.6vw, 3.6rem)/1 var(--head); letter-spacing: -0.04em; color: var(--accent); }
.proof-band span { display: block; margin-top: 10px; color: var(--muted-dark); }

/* numeri: linea con separatori, senza riquadri */
.proof-line { display: grid; gap: 28px; }
@media (min-width: 760px) { .proof-line { grid-template-columns: repeat(4, 1fr); gap: 0; } .proof-line > div { padding: 0 28px; border-left: 2px solid var(--accent); } }
.proof-line strong { display: block; font: 700 clamp(2.2rem, 4vw, 3.2rem)/1 var(--head); letter-spacing: -0.04em; }
.proof-line span { display: block; margin-top: 10px; color: var(--muted); }

/* galleria: mosaico */
.mosaic { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.mosaic figure { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
  .mosaic figure { aspect-ratio: auto; }
  .mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .mosaic figure:nth-child(4) { grid-column: span 2; }
}

/* contatti: fascia scura con numero grande */
.contact-band { display: grid; gap: 48px; }
@media (min-width: 980px) { .contact-band { grid-template-columns: 1.1fr .9fr; align-items: end; } }
.contact-band__main { display: grid; gap: 22px; justify-items: start; }
.contact-band__tel { font: 800 clamp(2.6rem, 6vw, 4.8rem)/1 var(--head); letter-spacing: -0.04em; color: var(--accent); }
.contact-band__side { display: grid; gap: 28px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--dark-2); }
.contact-band__side h3 { margin-bottom: 12px; }
.contact-band .hours dt { color: var(--muted-dark); }

/* contatti: foto di sfondo con card */
.contact-photo { position: relative; padding: clamp(80px, 12vw, 160px) 0; isolation: isolate; overflow: hidden; }
.contact-photo__bg { position: absolute; inset: 0; z-index: -2; }
.contact-photo__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,12,22,.55), rgba(8,12,22,.1)); }
.contact-photo .zona__card { max-width: 560px; box-shadow: var(--shadow); }

/* FAQ: griglia di risposte aperte */
.faq-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .faq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .faq-grid { grid-template-columns: repeat(3, 1fr); } }
.faq-grid > div { background: var(--surface); padding: 28px; display: grid; gap: 10px; align-content: start; }
.faq-grid__n { font: 700 .85rem/1 var(--body); color: var(--accent); letter-spacing: .08em; }
.faq-grid p { color: var(--muted); }

/* FAQ: centrata e stretta */
.faq-centro { max-width: 820px; }
.faq-centro .sec-head { text-align: center; justify-items: center; }
.faq-centro .sec-head .lead { margin-inline: auto; }

/* chiusura: fascia nel colore d'accento */
.cta-band { background: var(--accent); color: var(--on-accent); padding: clamp(64px, 9vw, 120px) 0; }
.cta-band__grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .cta-band__grid { grid-template-columns: 1.2fr .8fr; } }
.cta-band h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.cta-band .lead { color: inherit; opacity: .85; }
.cta-band .btn--ink { background: var(--on-accent); color: var(--accent); }
.cta-band .btn--line { color: inherit; }

/* chiusura: foto di sfondo */
.cta-photo { position: relative; color: #fff; padding: clamp(96px, 14vw, 180px) 0; text-align: center; isolation: isolate; overflow: hidden; }
.cta-photo__bg { position: absolute; inset: 0; z-index: -2; }
.cta-photo__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,12,22,.68); }
.cta-photo__body { display: grid; gap: 22px; justify-items: center; max-width: 820px; }
.cta-photo .lead { color: rgba(255,255,255,.82); margin-inline: auto; }
.cta-photo .btns { justify-content: center; }
.cta-photo .btn--line { color: #fff; }

/* footer scuro */
.ftr--scuro { background: var(--dark); color: var(--on-dark); }
.ftr--scuro .ftr__top { border-color: rgba(255,255,255,.12); }
.ftr--scuro h3, .ftr--scuro .ftr__legal, .ftr--scuro .muted { color: var(--muted-dark); }

/* righe sempre piene: con 6 elementi, le ultime due tessere occupano metà riga ciascuna */
@media (min-width: 900px) {
  .bento .tile:nth-child(5), .bento .tile:nth-child(6),
  .mosaic figure:nth-child(5), .mosaic figure:nth-child(6) { grid-column: span 2; }
}
/* FAQ a griglia: l'ultima risposta si allarga per non lasciare caselle vuote */
@media (min-width: 760px) and (max-width: 1079px) { .faq-grid > div:last-child:nth-child(odd) { grid-column: span 2; } }
@media (min-width: 1080px) {
  .faq-grid > div:last-child:nth-child(3n+1) { grid-column: span 3; }
  .faq-grid > div:last-child:nth-child(3n+2) { grid-column: span 2; }
}

/* ---------- effetti adattati da React Bits (reactbits.dev, David Haz, MIT + Commons Clause) ---------- */
/* SpotlightCard: luce che segue il puntatore sulle card dei servizi */
.card, .tile { position: relative; --mx: 50%; --my: 50%; }
.card::before, .tile::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%); }
@media (hover: hover) and (pointer: fine) { .card:hover::before, .tile:hover::before { opacity: 1; } }
/* Magnet: il pulsante principale segue un poco il puntatore (lo muove GSAP, niente transizione CSS sul transform) */
.btn.is-magnet { transition: background .25s, box-shadow .25s, border-color .25s; }
/* RotatingText: la fine del titolo alterna i servizi */
.card__body, .tile__body { position: relative; z-index: 2; }
.ruota { display: inline-block; white-space: nowrap; }
.ruota__c { display: inline-block; }
.ruota__box { display: inline-flex; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
@media (prefers-reduced-motion: no-preference) {
  /* BlurText: con data-titoli="sfoca" le parole si mettono a fuoco invece di salire */
  .js[data-titoli="sfoca"] .w { overflow: visible; }
  .js[data-titoli="sfoca"] .w > span { transform: none; opacity: 0; filter: blur(10px); }
}
.hero--foto .accent-text, .hero--centro .accent-text { color: color-mix(in srgb, var(--accent) 45%, #fff); } /* accento più chiaro sopra la foto scura */

/* Dove siamo: mappa che si carica al tocco */
.dove { display: grid; gap: 28px; align-items: center; }
.dove__txt { display: grid; gap: 16px; align-content: center; }
.dove__txt h2 { margin: 0; }
.dove__txt .lead { margin: 0; }
.dove__mappa { position: relative; min-height: 300px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.dove__mappa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dove__ph { position: absolute; inset: 0; width: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 24px; border: 0; cursor: pointer; font: 600 1.05rem/1.2 var(--body); color: var(--ink);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 44px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 100%, var(--surface-2); }
.dove__ph svg { color: var(--ink); }
.dove__ph small { font: 400 .85rem/1.3 var(--body); color: var(--muted); }
.dove__ph:hover span { text-decoration: underline; text-underline-offset: 4px; }
.dove__ph:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (min-width: 900px) { .dove { grid-template-columns: .8fr 1.2fr; gap: 56px; } .dove__mappa { min-height: 380px; } }
