/* =========================================================
   Artistic Nails · Professional Nail Academy — Nuoro
   Style system Royaletiger — CSS puro, zero framework

   IDENTITÀ DERIVATA DAL LOGO (non inventata):
   - rosso  #BF3733  campionato dal logo (13% dei pixel opachi)
   - nero   #1A1A1A  campionato dal logo (56% dei pixel opachi)
   - il logo è una CALLIGRAFIA A PENNELLO: il corsivo Yellowtail ne
     riprende il segno (come la parola "Nails"), e la pennellata
     tornaper come elemento grafico ricorrente (filetti, sottolineature).
   - i rosa sono TINTE dello stesso rosso, non colori estranei.
   ========================================================= */

:root {
  /* --- palette: campionata dal logo --- */
  --ink:        #1A1A1A;   /* nero del logo */
  --ink-soft:   #2A2320;
  --brand:      #BF3733;   /* rosso del logo — 5.41:1 su fondo chiaro, AA */
  --brand-dark: #96241F;
  --brand-soft: #E39A93;   /* rosso schiarito, per fondi scuri */
  --blush:      #F3D3CE;   /* velo di rosso */
  --brand-tint: #FCEDEA;   /* rosso lavatissimo per fondi e icone */
  --accent:     #BF3733;

  --text:  #3D3330;
  --muted: #756763;        /* verificato 5.31:1 su fondo chiaro — WCAG AA */
  --bg:    #FEFBF9;        /* avorio caldo */
  --bg-alt:#FAF1ED;        /* velo rosato */
  --bg-veil:#FDF6F3;
  --line:  #EEDFDA;
  --white: #ffffff;

  /* --- tipografia: serif fashion + corsivo a pennello del logo --- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script: 'Yellowtail', 'Brush Script MT', cursive;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* --- sistema: ombre calde a tinta rosa, mai grigio freddo --- */
  --shadow-sm: 0 2px 10px rgba(60,30,26,.05);
  --shadow-md: 0 14px 34px rgba(60,30,26,.10);
  --shadow-lg: 0 28px 64px rgba(60,30,26,.16);
  --radius: 16px;
  --radius-lg: 26px;
  --radius-sm: 11px;
  --arch: 999px 999px 26px 26px / 320px 320px 26px 26px;  /* arco boutique */
  --container: 1200px;
  --nav-h: 78px;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; color: var(--ink); letter-spacing: -.005em; }
p { color: var(--text); }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--brand-tint); color: var(--brand-dark); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-tint { background: linear-gradient(180deg,#fff 0%, var(--bg-veil) 45%, var(--brand-tint) 100%); }
.section-dark { background: var(--ink); color: #F2E9E6; position: relative; overflow: hidden; }
.section-dark h1,.section-dark h2,.section-dark h3 { color: #fff; }
.section-dark p { color: #CFC2BD; }
/* velo rosato sulle sezioni scure: toglie la durezza del nero pieno */
.section-dark::before {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(191,55,51,.42), transparent 55%),
    radial-gradient(ellipse at 95% 100%, rgba(191,55,51,.22), transparent 50%);
}
.section-dark > * { position: relative; z-index: 1; }
.narrow { max-width: 780px; margin-inline: auto; }

/* ---------- typografia scale ---------- */
h1 { font-size: clamp(2.7rem, 6.2vw, 4.9rem); font-weight: 400; }
h2 { font-size: clamp(2.15rem, 4.5vw, 3.4rem); font-weight: 400; }
h3 { font-size: clamp(1.38rem, 2.2vw, 1.75rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing:.02em; }
.lead { font-size: clamp(1.08rem,1.5vw,1.28rem); color: var(--muted); font-weight: 300; }
em { font-style: italic; }

/* =========================================================
   PENNELLATA — l'elemento grafico preso dal logo.
   Un solo file SVG usato come maschera: si colora con le
   variabili CSS, quindi funziona su fondo chiaro e scuro.
   ========================================================= */
.brush {
  display: block; background-color: var(--brand);
  -webkit-mask: url("../img/brush.svg") center/100% 100% no-repeat;
          mask: url("../img/brush.svg") center/100% 100% no-repeat;
}

/* corsivo a pennello: riprende la parola "Nails" del logo.
   Solo per accenti brevi — mai per testi lunghi. */
.script, .hero h1 em, .footer-brand span {
  font-family: var(--font-script);
  font-style: normal; font-weight: 400;
  color: var(--brand);
  line-height: 1.25;
}

/* occhiello: pennellata corta al posto del filetto */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content:""; width: 36px; height: 11px; flex: 0 0 36px; display: inline-block;
  background-color: var(--brand);
  -webkit-mask: url("../img/brush.svg") center/100% 100% no-repeat;
          mask: url("../img/brush.svg") center/100% 100% no-repeat;
}
.section-dark .eyebrow { color: var(--brand-soft); }
.section-dark .eyebrow::before { background-color: var(--brand-soft); }
.section-head { max-width: 720px; margin-bottom: 58px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 18px; }

/* sottolineatura a pennello sotto i titoli centrati */
.section-head.center h2::after {
  content:""; display: block; width: 148px; height: 17px; margin: 20px auto 0;
  background-color: var(--brand);
  -webkit-mask: url("../img/brush.svg") center/100% 100% no-repeat;
          mask: url("../img/brush.svg") center/100% 100% no-repeat;
}
.section-dark .section-head.center h2::after { background-color: var(--brand-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: .93rem; letter-spacing: .04em;
  padding: 15px 32px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(191,55,51,.26); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 18px 36px rgba(191,55,51,.32); }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1eb257; transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header::before {
  content:""; position:absolute; inset:0; background: rgba(254,252,251,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease); z-index:-1;
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { height: 68px; }
.site-header.scrolled::before { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand img { height: 46px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .nav-brand img { height: 40px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a {
  position: relative; white-space: nowrap;
  font-family: var(--font-body); font-size: .93rem; font-weight: 500; color: var(--ink);
  padding: 9px 16px; border-radius: 100px; transition: color .25s;
}
/* sottolineatura fine che nasce dal centro — più delicata del riempimento pieno */
.nav-links > li > a:not(.nav-cta)::after {
  content:""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px;
  background: var(--brand); transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav-links > li > a:not(.nav-cta):hover { color: var(--brand); }
.nav-links > li > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"]:not(.nav-cta) { color: var(--brand); }
.nav-links a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero home ---------- */
.hero {
  position: relative; min-height: 94vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 70px; color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
/* velatura prugna calda invece del nero: la pelle resta naturale, non spenta */
.hero::after {
  content:""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(24,20,19,.90) 0%, rgba(24,20,19,.66) 44%, rgba(24,20,19,.24) 100%),
    radial-gradient(ellipse at 8% 90%, rgba(191,55,51,.35), transparent 55%);
}
.hero .container { position: relative; }
.hero-inner { max-width: 730px; }
.hero h1 { color: #fff; margin: 18px 0 22px; font-weight: 300; }
.hero h1 em { color: var(--brand-soft); font-size: 1.06em; }
.hero .lead { color: #EDE2DE; max-width: 570px; }
.hero .eyebrow { color: var(--brand-soft); }
.hero .eyebrow::before { background: var(--brand-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-stats { display: flex; gap: 46px; margin-top: 54px; flex-wrap: wrap; }
.hero-stats .stat { position: relative; padding-left: 0; }
.hero-stats .stat strong { font-family: var(--font-display); font-weight: 400; font-size: 2.7rem; color: #fff; display: block; line-height: 1; }
.hero-stats .stat span { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: #C3B4AE; }

/* hero interne (pagine) */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + 76px) 0 70px; background: var(--ink); color: #fff; overflow: hidden;
}
.page-hero::before {
  content:""; position:absolute; inset:0; opacity:.62;
  background:
    radial-gradient(circle at 88% 15%, rgba(191,55,51,.75), transparent 55%),
    radial-gradient(circle at 8% 95%, rgba(191,55,51,.3), transparent 50%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 16px; font-weight: 300; }
.page-hero p { color: #CFC2BD; max-width: 620px; }
.breadcrumb { font-size: .8rem; color: #B4A69F; margin-bottom: 22px; letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--brand-soft); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.feature-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 34px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  overflow: hidden;
}
/* alone rosato che si accende all'hover */
.feature-card::after {
  content:""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-tint), transparent 70%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.feature-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--blush); }
.feature-card:hover::after { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }
.feature-icon {
  width: 58px; height: 58px; border-radius: 50% 50% 50% 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-tint), #FEF7F5); color: var(--brand); margin-bottom: 24px;
  border: 1px solid rgba(191,55,51,.28);
}
.feature-icon svg { width: 27px; height: 27px; }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: .97rem; }

/* ---------- split about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 66px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
/* immagine ad arco: la firma visiva boutique */
.split-media img {
  border-radius: var(--arch); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover;
}
/* filetto champagne che segue l'arco */
.split-media::before {
  content:""; position: absolute; inset: -14px -14px 14px -14px; border: 1px solid var(--blush);
  border-radius: var(--arch); pointer-events: none; opacity: .75;
}
.split-media .badge-float {
  position: absolute; bottom: -24px; right: -18px; background: var(--ink); color: #fff;
  padding: 22px 28px; border-radius: var(--radius); box-shadow: var(--shadow-md);
  border: 1px solid rgba(191,55,51,.3);
}
.split-media .badge-float strong { font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; color: #fff; display: block; line-height: 1; }
.split-media .badge-float span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-soft); }
.split-body h2 { margin-bottom: 22px; }
.split-body p + p { margin-top: 16px; }
.check-list { margin-top: 26px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .98rem; }
.check-list li::before {
  content:""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A85A6E' 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;
}
.split-body .btn { margin-top: 32px; }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.service-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--blush); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-media { aspect-ratio: 4/3.4; overflow: hidden; position: relative; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
/* sfumatura rosata sul fondo dell'immagine: cuce foto e card */
.service-media::after {
  content:""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(251,243,241,.55));
}
.service-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.service-body .tag { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.service-body h3 { margin: 10px 0 13px; }
.service-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.service-link {
  margin-top: 20px; font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--brand);
  display: inline-flex; align-items: center; gap: 9px; letter-spacing: .03em;
}
.service-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.service-card:hover .service-link { color: var(--brand-dark); }
.service-card:hover .service-link svg { transform: translateX(5px); }

/* service detail rows (pagina servizi) */
.svc-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; padding: 24px 0; }
.svc-detail:nth-child(even) .svc-detail-media { order: 2; }
.svc-detail-media { position: relative; }
.svc-detail-media img { border-radius: var(--arch); box-shadow: var(--shadow-md); aspect-ratio: 4/3.9; object-fit: cover; width:100%; }
.svc-detail-media::before {
  content:""; position: absolute; inset: -12px -12px 12px -12px; border: 1px solid var(--blush);
  border-radius: var(--arch); pointer-events: none; opacity: .7;
}
.svc-detail h3 { font-size: clamp(1.75rem,2.6vw,2.25rem); margin-bottom: 16px; }
.svc-detail .tag { color: var(--brand); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; }
.svc-detail p { color: var(--text); }
.svc-detail .mini-benefit { margin-top: 18px; display: inline-flex; gap: 10px; align-items: center; color: var(--brand-dark); font-weight: 500; font-size: .92rem; }
.svc-detail .mini-benefit::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--brand); flex:0 0 7px; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 1; background: var(--bg-alt); }
/* prima immagine di ogni riga ad arco: spezza la griglia, look editoriale */
.gallery-grid figure:nth-child(4n+1) { border-radius: 180px 180px var(--radius) var(--radius); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-grid figure::after {
  content:""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 50%, rgba(24,20,19,.62));
  opacity: 0; transition: opacity .35s;
}
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figure:hover::after { opacity: 1; }
.gallery-grid figcaption {
  position: absolute; left: 18px; right: 12px; bottom: 14px; color: #fff; font-size: .82rem; z-index: 2;
  opacity: 0; transform: translateY(8px); transition: all .35s var(--ease);
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- galleria tattoo: colonne, non griglia ----------
   Le foto hanno proporzioni molto diverse (dal 719x460 al 567x900):
   una griglia quadrata le taglierebbe. Con le colonne CSS ognuna
   tiene la sua forma. Riusa .gallery-grid solo per agganciare il
   lightbox gia presente in main.js, e ne annulla la griglia. */
.gallery-grid.masonry { display: block; column-count: 3; column-gap: 20px; }
.gallery-grid.masonry figure {
  aspect-ratio: auto; break-inside: avoid; -webkit-column-break-inside: avoid;
  margin: 0 0 20px; border-radius: var(--radius); background: var(--bg-alt);
}
.gallery-grid.masonry figure img { height: auto; }
.gallery-grid.masonry figcaption { left: 16px; right: 14px; bottom: 14px; }
/* Con 8 voci di menu la barra estesa non regge sotto i 1024px ("Chi siamo"
   andava a capo a 900px): sotto questa soglia si passa all'hamburger. */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); height: 100vh;
    background: var(--bg); flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(var(--nav-h) + 20px) 26px 40px; gap: 4px;
    transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links > li > a { display: block; padding: 15px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links > li > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin: 16px 0 0; text-align: center; border-bottom: 0 !important; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 900px) { .gallery-grid.masonry { column-count: 2; } }
@media (max-width: 560px) { .gallery-grid.masonry { column-count: 1; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(24,20,19,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 24px; right: 30px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; cursor: pointer; transition: background .25s; }
.lightbox-close:hover { background: var(--brand); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; cursor: pointer; transition: background .25s; }
.lightbox-nav:hover { background: var(--brand); }
.lightbox-nav.prev { left: 22px; } .lightbox-nav.next { right: 22px; }

/* ---------- stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stats-band .stat { position: relative; }
/* separatori champagne fra i numeri */
.stats-band .stat + .stat::before {
  content:""; position: absolute; left: -12px; top: 12%; bottom: 12%; width: 1px; background: var(--blush); opacity: .5;
}
.stats-band .stat strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.7rem,5vw,3.8rem); color: var(--brand); display: block; line-height: 1; }
.section-dark .stats-band .stat strong { color: var(--brand-soft); }
.stats-band .stat span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 10px; display: block; }
.section-dark .stats-band .stat span { color: #BCAEA9; }

/* ---------- testimonial ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.quote-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 32px 34px; }
/* virgoletta serif in filigrana */
.quote-card::before {
  content:"”"; position: absolute; top: 6px; right: 26px; font-family: var(--font-display);
  font-size: 5rem; line-height: 1; color: var(--brand-tint);
}
.section-dark .quote-card { background: rgba(255,255,255,.05); border-color: rgba(227,154,147,.18); backdrop-filter: blur(6px); }
.section-dark .quote-card::before { color: rgba(227,154,147,.16); }
.quote-card > * { position: relative; z-index: 1; }
/* stelle in rosa brand, non in champagne: il voto è informazione, serve contrasto */
.quote-card .stars { color: var(--brand); letter-spacing: 3px; font-size: .9rem; margin-bottom: 16px; }
.section-dark .quote-card .stars { color: var(--brand-soft); }
.quote-card blockquote { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.45; color: var(--ink); font-style: italic; }
.section-dark .quote-card blockquote { color: #fff; }
.quote-card .author { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink); }
.section-dark .quote-card .author { color: #F2E9E6; border-top-color: rgba(227,154,147,.2); }
.quote-card .author span { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.section-dark .quote-card .author span { color: #B5A7A2; }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.blog-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--blush); }
.blog-card .blog-media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.blog-card .blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.blog-card:hover .blog-media img { transform: scale(1.05); }
.blog-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.blog-body .meta { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.blog-body h3 { margin: 12px 0 13px; font-size: 1.42rem; }
.blog-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.blog-body .service-link { margin-top: 18px; }

/* article */
.article { max-width: 760px; margin-inline: auto; }
.article p, .article ul { font-size: 1.08rem; margin-bottom: 22px; }
.article ul { list-style: none; display: grid; gap: 11px; }
.article ul li { padding-left: 28px; position: relative; }
.article ul li::before { content:""; position:absolute; left:2px; top:.62em; width:7px; height:7px; border-radius:50%; background:var(--brand); }
.article h2 { margin: 46px 0 18px; }
.article h3 { margin: 32px 0 14px; }
.article .lead { font-size: 1.24rem; color: var(--ink); font-family: var(--font-display); font-style: italic; font-weight: 400; margin-bottom: 30px; }
.article-hero-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 38px; aspect-ratio: 16/8; object-fit: cover; width:100%; }
.faq-block { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 32px; }
.article blockquote { padding: 8px 0 8px 26px; position: relative; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.34rem; color: var(--ink); margin: 30px 0; }
.article blockquote::before { content:""; position:absolute; left:0; top:0; bottom:0; width:10px;
  background-color: var(--brand);
  -webkit-mask: url("../img/brush.svg") center/100% 100% no-repeat; mask: url("../img/brush.svg") center/100% 100% no-repeat;
  -webkit-mask-size: 100% 100%; transform: rotate(180deg); }

/* ---------- accordion (FAQ) ---------- */
.accordion { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.acc-item.is-open { border-color: var(--blush); box-shadow: var(--shadow-sm); }
.acc-head { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 23px 28px; font-family: var(--font-body); font-weight: 600; font-size: 1.03rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc-head .ico { flex: 0 0 22px; height: 22px; position: relative; transition: transform .3s; }
.acc-head .ico::before,.acc-head .ico::after { content:""; position: absolute; background: var(--brand); border-radius: 2px; }
.acc-head .ico::before { top: 10px; left: 2px; right: 2px; height: 1.5px; }
.acc-head .ico::after { left: 10px; top: 2px; bottom: 2px; width: 1.5px; transition: transform .3s; }
.acc-item.is-open .acc-head .ico::after { transform: scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-body-inner { padding: 0 28px 26px; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 72px 56px; overflow: hidden; text-align: center; }
.cta-banner::before {
  content:""; position: absolute; inset: 0; opacity: .75;
  background:
    radial-gradient(circle at 14% 18%, rgba(191,55,51,.6), transparent 48%),
    radial-gradient(circle at 88% 88%, rgba(191,55,51,.38), transparent 48%);
}
/* cornice champagne interna */
.cta-banner::after {
  content:""; position: absolute; inset: 16px; border: 1px solid rgba(227,154,147,.22); border-radius: 18px; pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 16px; font-weight: 300; }
.cta-banner p { color: #DBCFCA; max-width: 560px; margin: 0 auto 32px; }
.cta-banner .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* su fondo nero il rosso del logo si spegne: il primario diventa avorio su testo nero */
.cta-banner .btn-primary, .section-dark .btn-primary {
  background: var(--bg); color: var(--ink);
  box-shadow: 0 10px 26px rgba(0,0,0,.3);
}
.cta-banner .btn-primary:hover, .section-dark .btn-primary:hover {
  background: #fff; color: var(--brand);
}

/* ---------- contatti ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info .info-item { display: flex; gap: 17px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: 0; }
.info-item .ii-icon { flex: 0 0 46px; height: 46px; border-radius: 50% 50% 50% 10px; background: linear-gradient(135deg, var(--brand-tint), #FEF7F5); color: var(--brand); display: grid; place-items: center; border: 1px solid rgba(191,55,51,.28); }
.info-item .ii-icon svg { width: 22px; height: 22px; }
.info-item h4 { margin-bottom: 4px; font-size: .93rem; }
.info-item a, .info-item p { color: var(--muted); font-size: .98rem; }
.info-item a:hover { color: var(--brand); }
.hours-table { margin-top: 8px; }
.hours-table li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.hours-table li span:first-child { color: var(--ink); font-weight: 600; }
.hours-table li span:last-child { color: var(--muted); }
.hours-table li.closed span:last-child { color: var(--brand); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 19px; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .96rem; color: var(--text); background: var(--bg-veil); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(191,55,51,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.check-privacy { display: flex; gap: 11px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin-bottom: 24px; }
.check-privacy input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }
.check-privacy a { color: var(--brand); text-decoration: underline; }
.form-status { margin-top: 14px; font-size: .9rem; color: var(--brand-dark); min-height: 1em; }
.form-card .btn { width: 100%; }

.map-wrap { margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap a { display: block; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--ink); color: #BCAEA9; padding: 78px 0 30px; overflow: hidden; }
.site-footer::before {
  content:""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background: radial-gradient(ellipse at 85% 0%, rgba(191,55,51,.45), transparent 55%);
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; }
.footer-col p { color: #B3A49F; font-size: .93rem; }
/* specificità pari a .footer-col p: altrimenti il brand eredita 0.93rem e il grigio del testo */
.footer-col p.footer-brand { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.15; color: #fff; margin-bottom: 16px; }
/* nel footer va il marchio reale in variante chiara, non una simulazione col font.
   Larghezza fissa e height:auto — mai deformare un logo non quadrato. */
.footer-logo { width: 186px; height: auto; margin-bottom: 20px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a, .footer-col address a { color: #B3A49F; font-size: .93rem; font-style: normal; transition: color .25s; }
.footer-col ul a:hover, .footer-col address a:hover { color: var(--brand-soft); }
.footer-col address { line-height: 1.95; }
.social-row { display: flex; gap: 12px; margin-top: 22px; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #CFC2BD; transition: all .3s var(--ease); border: 1px solid rgba(227,154,147,.16); }
.social-row a:hover { background: var(--brand); color: #fff; transform: translateY(-3px); border-color: transparent; }
.social-row svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(227,154,147,.16); margin-top: 54px; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .83rem; color: #978882; }
.footer-bottom a { color: #978882; transition: color .25s; } .footer-bottom a:hover { color: var(--brand-soft); }
.footer-credit a { color: #B3A49F; }
.footer-credit a:hover { color: #fff; }

/* ---------- floating whatsapp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.4); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- 404 ---------- */
.err-wrap { min-height: 74vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 0 80px; }
.err-wrap .code { font-family: var(--font-display); font-weight: 300; font-size: clamp(6rem,18vw,11rem); color: var(--brand); line-height: .9; }
.err-wrap h1 { margin: 12px 0 16px; }
.err-wrap p { color: var(--muted); max-width: 460px; margin: 0 auto 30px; }
.err-wrap .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 150; max-width: 460px; background: var(--ink); color: #DCCFCA; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); display: none; border: 1px solid rgba(227,154,147,.18); }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: .88rem; color: #BCADA8; margin-bottom: 18px; }
.cookie-banner a { color: var(--brand-soft); text-decoration: underline; }
.cookie-banner .ck-row { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 11px 22px; font-size: .86rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.mt-cta { margin-top: 50px; text-align: center; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill-list li { background: var(--white); border: 1px solid var(--line); padding: 10px 20px; border-radius: 100px; font-size: .87rem; font-weight: 500; color: var(--ink); transition: border-color .25s, color .25s; }
.pill-list li:hover { border-color: var(--blush); color: var(--brand); }
.section-dark .pill-list li { background: rgba(255,255,255,.06); border-color: rgba(227,154,147,.2); color: #F2E9E6; }
.divider-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 12px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .split { gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .grid-3, .service-grid, .quote-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .gallery-grid figure:nth-child(4n+1) { border-radius: var(--radius); }
  .gallery-grid figure:nth-child(3n+1) { border-radius: 150px 150px var(--radius) var(--radius); }
  .stats-band { grid-template-columns: repeat(2,1fr); gap: 34px; }
  .stats-band .stat + .stat::before { display: none; }
  .svc-detail { grid-template-columns: 1fr; gap: 30px; }
  .svc-detail:nth-child(even) .svc-detail-media { order: 0; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .split, .split.reverse .split-media { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media .badge-float { right: 16px; bottom: -20px; }
  .split-media::before, .svc-detail-media::before { display: none; }
  .hero { min-height: 88vh; }
  /* su schermo stretto il gradiente orizzontale non copre il testo: si passa a verticale */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(24,20,19,.80) 0%, rgba(24,20,19,.58) 48%, rgba(24,20,19,.42) 100%),
      radial-gradient(ellipse at 0% 100%, rgba(191,55,51,.4), transparent 60%);
  }
  .hero-stats { gap: 30px; }
  .cta-banner { padding: 52px 26px; }
  .cta-banner::after { inset: 10px; }
  .form-card { padding: 30px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .service-grid, .quote-grid, .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid figure:nth-child(3n+1) { border-radius: var(--radius); }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats .stat strong { font-size: 2.2rem; }
}
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .section-head { margin-bottom: 40px; }
  .feature-card { padding: 32px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
