/* =========================================================
   VIP Immagine Pubblicità — Foglio di stile unico
   Palette e tipografia derivate dal prototipo Claude Design
   ========================================================= */

:root {
  /* Colori */
  --bg:          #0d0d0d;
  --bg-soft:     #141414;
  --ink:         #0d0d0d;
  --paper:       #ffffff;
  --blue:        #1ba0e2;
  --magenta:     #e01e83;
  --magenta-dark:#b81569;
  --line:        #262626;
  --line-soft:   #1c1c1c;
  --muted:       #9a9a9a;
  --muted-2:     #c9c9c9;
  --muted-3:     #6a6a6a;

  /* Layout */
  --maxw:        1180px;
  --gutter:      clamp(20px, 5vw, 40px);
  --radius:      4px;
  --radius-lg:   8px;

  /* Tipografia */
  --font-head:   'Anton', 'Helvetica Neue', Arial, sans-serif;
  --font-body:   'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset di base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

  body {                                                                                                                              
    font-family: var(--font-body);                          
    color: var(--ink);                                                                                                                
    background: var(--paper);                                                                                                         
    line-height: 1.5;                                                                                                                 
    -webkit-font-smoothing: antialiased;                                                                                              
    -moz-osx-font-smoothing: grayscale;                                                                                               
    min-height: 100vh;                                                                                                                
    display: flex;                                                                                                                    
    flex-direction: column;                                                                                                           
  }                                                                                                                                   
                                                                                                                                      
  main { flex: 1 0 auto; }  

img { max-width: 100%; display: block; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--magenta); }

::selection { background: var(--magenta); color: #fff; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.05; letter-spacing: 0.5px; }

/* ---------- Contenitore ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Sezioni scure/chiare ---------- */
.section        { padding: clamp(48px, 8vw, 90px) 0; }
.section--dark  { background: var(--bg); color: #fff; border-top: 1px solid #1a1a1a; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--bg); }

/* Marchio VIP */
.logo-vip { font-family: var(--font-head); letter-spacing: 1px; line-height: 1; }
.logo-vip .vi { color: var(--blue); }
.logo-vip .p  { color: var(--magenta); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--bg);
  color: #fff;
  font-family: var(--font-body);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo-img { height: 40px; width: auto; display: block; }
@media (max-width: 600px) { .brand__logo-img { height: 32px; } }

/* Nav desktop */
.nav-desktop { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); font-size: 15px; font-weight: 500; }
.nav-desktop a { color: #fff; padding-bottom: 3px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-desktop a:hover { color: #fff; border-bottom-color: var(--blue); }
.nav-desktop a.is-active { border-bottom-color: var(--magenta); }

/* Dropdown Prodotti */
.has-dd { position: relative; }
.has-dd__toggle { display: inline-flex; align-items: center; gap: 5px; }
.has-dd__caret { font-size: 10px; color: #8a8a8a; }
.dd-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 16px; display: none;
}
.has-dd:hover .dd-menu, .has-dd:focus-within .dd-menu { display: block; }
.dd-menu__inner {
  display: block;  /* è uno <span>: senza questo lo sfondo copre solo il testo, non il pannello */
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; width: 300px; box-shadow: 0 24px 48px rgba(0,0,0,.45);
}
.dd-menu__inner a {
  display: block; color: #e8e8e8; font-size: 14px;
  padding: 11px 14px; border-radius: 3px; border: none;
}
.dd-menu__inner a:hover { background: #1e1e1e; color: #fff; }

/* Azioni desktop */
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions__tel { font-weight: 700; font-size: 15px; color: var(--blue); white-space: nowrap; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* Menu mobile */
.nav-mobile { display: none; border-top: 1px solid var(--line-soft); background: var(--bg); }
.nav-mobile.is-open { display: block; }
.nav-mobile nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 18px; }
.nav-mobile a { color: #fff; font-size: 16px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.nav-mobile__cta { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }

@media (max-width: 1023px) {
  .nav-desktop, .header-actions { display: none; }
  .hamburger { display: flex; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bg); color: #fff; font-family: var(--font-body); }
.site-footer__grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 56px var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px;
}
.site-footer__logo { font-size: 26px; margin-bottom: 16px; }
.site-footer__logo-img { height: 40px; width: auto; display: block; margin-bottom: 16px; }
.site-footer strong { font-weight: 700; font-size: 15px; display: block; margin-bottom: 12px; }
.site-footer__text { font-size: 14px; color: var(--muted); line-height: 1.7; }
.site-footer__label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-3); margin-bottom: 14px; }
.site-footer__list { font-size: 14px; color: var(--muted-2); line-height: 1.7; }
.site-footer__list a { color: var(--muted-2); }
.site-footer__list a:hover { color: var(--blue); }
.site-footer__bottom { border-top: 1px solid var(--line-soft); }
.site-footer__bottom-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted-3);
}
.site-footer__legal { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-footer__legal a,
.site-footer__cookie-link {
  color: var(--muted-2); font-size: 13px; background: none; border: none; padding: 0;
  cursor: pointer; font-family: inherit;
}
.site-footer__legal a:hover,
.site-footer__cookie-link:hover { color: var(--blue); }

/* ---------- Pagine legali (privacy, cookie) ---------- */
.legal { max-width: 820px; }
.legal h2 { font-family: var(--font-body); font-weight: 800; font-size: 22px; margin: 34px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: #444; line-height: 1.75; margin: 0 0 14px; }
.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal a { color: var(--blue); }
.legal__updated { font-size: 13px; color: var(--muted-3); margin: 0 0 30px; }
.legal table.legal__cookies { width: 100%; border-collapse: collapse; margin: 4px 0 22px; font-size: 14px; }
.legal__cookies th, .legal__cookies td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__cookies th { font-weight: 700; color: var(--ink); }

/* ---------- Banner cookie (GDPR) ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--bg-soft); color: #fff;
  border: 1px solid #2a2a2a; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}
.cookie-banner__inner {
  max-width: 980px; margin: 0 auto; padding: 18px 22px;
  display: flex; align-items: center; gap: 20px 26px; flex-wrap: wrap;
}
.cookie-banner__text { font-size: 14px; line-height: 1.6; color: #d4d4d4; margin: 0; flex: 1 1 320px; }
.cookie-banner__text a { color: var(--blue); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex: 0 0 auto; }
.cookie-banner__actions .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; text-align: center; }
}

/* =========================================================
   HERO (base — ampliato nelle pagine in Fase 1)
   ========================================================= */
.hero { background: var(--bg); color: #fff; padding: clamp(60px, 12vw, 130px) 0; }
.hero__eyebrow {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin-bottom: 18px;
}
.hero h1 {
  color: #fff; font-size: clamp(38px, 7vw, 74px); max-width: 16ch; margin-bottom: 22px;
}
.hero__lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted-2); max-width: 60ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__clients {
  margin-top: clamp(40px, 6vw, 70px); padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
}
.hero__clients span { font-size: 15px; font-weight: 600; color: var(--muted); }

/* Eyebrow riutilizzabile su fondo chiaro */
.eyebrow {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--magenta); font-weight: 700; margin-bottom: 14px;
}

/* =========================================================
   FASE 1 — COMPONENTI DELLE PAGINE VETRINA
   ========================================================= */

/* ---------- Sezioni: varianti di sfondo ---------- */
.section--paper { background: var(--paper); color: var(--ink); }
.section--muted { background: #f4f4f4; color: var(--ink); }
.section--muted h1, .section--muted h2, .section--muted h3 { color: var(--ink); }

/* ---------- Kicker (occhiello con marcatore) ---------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 18px;
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--magenta); flex: none; }
.kicker--bar::before { width: 30px; height: 3px; }
.kicker--blue::before { background: var(--blue); }

/* ---------- Titoli ---------- */
/* Titolo di sezione: font testo pesante (Archivo 800), come nel prototipo */
.section-title {
  font-family: var(--font-body); font-weight: 800; letter-spacing: -0.5px;
  line-height: 1.15; font-size: clamp(26px, 4vw, 34px); color: inherit;
}
.section-title--sm { font-size: clamp(22px, 3vw, 28px); }
/* Titolo "display" in Anton (per le CTA) */
.display-title {
  font-family: var(--font-head); font-weight: 400; letter-spacing: 0.5px;
  line-height: 1.08; font-size: clamp(28px, 4.5vw, 40px);
}

/* ---------- Bottoni aggiuntivi ---------- */
.btn-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ink:hover { background: var(--ink); color: #fff; }
.section--dark .btn-ink, .page-hero .btn-ink { border-color: #fff; color: #fff; }
.section--dark .btn-ink:hover, .page-hero .btn-ink:hover { background: #fff; color: var(--ink); }
.link-arrow { font-weight: 700; color: var(--magenta); font-size: 16px; white-space: nowrap; }
.link-arrow:hover { color: var(--magenta-dark); }

/* ---------- Immagini fisse caricate dalla dashboard (slot) ---------- */
/* La classe di dimensionamento (card__media, cat-block__media, ecc.)
   fornisce l'aspect-ratio; qui l'immagine riempie e ritaglia senza deformarsi. */
img.slot-img { display: block; width: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.hero-media__frame .slot-img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.gallery .slot-img { height: 100%; border-radius: 6px; }

/* ---------- Placeholder immagini (in attesa delle foto reali) ---------- */
.ph {
  background-image: repeating-linear-gradient(45deg, #ededed 0, #ededed 12px, #f6f6f6 12px, #f6f6f6 24px);
  border: 1px solid #e6e6e6; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.ph > span { font-family: monospace; font-size: 12px; color: #a5a5a5; letter-spacing: 1px; line-height: 1.6; }
.ph--dark {
  background-image: repeating-linear-gradient(45deg, #1c1c1c 0, #1c1c1c 12px, #202020 12px, #202020 24px);
  border-color: var(--line);
}
.ph--dark > span { color: var(--muted-3); }

/* ---------- Hero delle pagine interne (scuro) ---------- */
.page-hero { background: var(--bg); color: #fff; padding: clamp(50px, 8vw, 74px) 0; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5.5vw, 52px); line-height: 1.03; margin: 0 0 28px; max-width: 1000px; }
.page-hero__intro { max-width: 860px; }
.page-hero__intro p { font-size: 17px; line-height: 1.7; color: var(--muted-2); margin: 0 0 18px; }
.page-hero__intro p:last-child { margin-bottom: 0; }

/* ---------- Blocco CTA centrato ---------- */
.cta-center { max-width: 800px; margin: 0 auto; text-align: center; }
.cta-center .display-title { margin: 0 0 20px; }
.cta-center p { font-size: 17px; line-height: 1.65; margin: 0 0 30px; color: var(--muted-2); }
.section--muted .cta-center p { color: #444; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

/* ---------- Banda CTA (titolo + azioni affiancati) ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band__title { font-family: var(--font-head); font-weight: 400; font-size: clamp(22px, 3.5vw, 30px); line-height: 1.1; }

/* ---------- Fascia marchi ---------- */
.strip-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #999; margin-bottom: 22px; }

/* Carosello marchi: riga di loghi con frecce quando eccedono la larghezza */
.brands-carousel { display: flex; align-items: center; gap: 10px; }
.brands-track {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 46px;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 4px 2px;
}
.brands-track::-webkit-scrollbar { display: none; }
.brand { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; scroll-snap-align: start; }
.brand__logo {
  display: block; height: 46px; width: auto; max-width: 160px; object-fit: contain;
  opacity: .72; transition: opacity .2s ease;
}
.brand__logo:hover { opacity: 1; }
.brand--text span { font-size: 18px; font-weight: 700; color: #b3b3b3; white-space: nowrap; }

.brands-nav {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid #dcdcdc; background: #fff; color: #333;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.brands-nav:hover { background: var(--blu, #1ba0e2); border-color: var(--blu, #1ba0e2); color: #fff; }
.brands-nav:focus-visible { outline: 2px solid var(--blu, #1ba0e2); outline-offset: 2px; }
.brands-nav:disabled { opacity: .35; cursor: default; background: #fff; color: #333; border-color: #dcdcdc; }

/* =========================================================
   HOME
   ========================================================= */
/* Hero della home a tutta larghezza: foto piena + sfumatura, testo a sinistra */
.hero--cover {
  position: relative; overflow: hidden;
  min-height: clamp(480px, 66vh, 640px);
  display: flex; align-items: center;
  padding: clamp(56px, 9vw, 100px) 0;
}
.hero--cover .hero__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; border: none; border-radius: 0;
}
/* Sfumatura scura da sinistra (dove c'è il testo) verso destra */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(13,13,13,.95) 0%, rgba(13,13,13,.86) 28%,
    rgba(13,13,13,.45) 60%, rgba(13,13,13,.05) 92%);
}
/* width:100% impedisce che, dentro il flex, il container si stringa al
   contenuto: così resta a 1180px e il testo si allinea al margine del sito. */
.hero--cover .container { position: relative; z-index: 2; width: 100%; }
.hero__inner { max-width: 600px; }
.hero__inner .hero__lead { max-width: 46ch; color: #eaeaea; }
.hero--cover h1 { font-size: clamp(38px, 6vw, 62px); line-height: 0.99; margin-bottom: 24px; max-width: none; }
.hero--cover h1 em { color: var(--magenta); font-style: normal; }
/* Didascalia della foto (facoltativa), in basso a destra */
.hero__caption {
  position: absolute; right: clamp(20px, 5vw, 40px); bottom: 16px; z-index: 2;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.6); font-weight: 600;
}

/* Statistiche */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats__item { padding: 36px 28px 40px; border-right: 1px solid var(--line); }
.stats__item:last-child { border-right: none; }
.stats__num { font-family: var(--font-head); font-size: 40px; line-height: 1; color: var(--blue); margin-bottom: 12px; }
.stats__num--sm { font-size: 28px; color: #fff; }
.stats__label { font-size: 14px; color: #b0b0b0; line-height: 1.5; }

/* Split generico (testo + media) */
.split { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.split__text p { font-size: 16px; line-height: 1.65; color: #444; margin: 0 0 18px; max-width: 520px; }
.split__media { aspect-ratio: 1/1; background: var(--blue); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; }
.split__media span { font-family: monospace; font-size: 12px; color: rgba(255,255,255,.75); letter-spacing: 1px; }

/* Griglia card prodotti/categorie */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { border: 1px solid #e6e6e6; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.card:hover { border-color: var(--ink); color: var(--ink); }
/* Le card scure mantengono il testo chiaro anche in hover (altrimenti sparirebbe). */
.card--dark:hover { border-color: var(--bg); color: #fff; }
.card--dark:hover .card__text { color: #c2c2c2; }
.card__media { aspect-ratio: 3/2; border: none; border-radius: 0; }
.card__body { padding: 24px 24px 28px; }
.card__title { font-family: var(--font-body); font-size: 20px; font-weight: 700; margin: 0 0 10px; line-height: 1.2; }
.card__text { font-size: 15px; line-height: 1.55; color: #555; margin: 0; }
.card--dark { background: var(--bg); color: #fff; padding: 34px 28px; justify-content: center; border-color: var(--bg); }
.card--dark .card__title { font-weight: 800; font-size: 22px; }
.card--dark .card__text { color: #c2c2c2; margin-bottom: 22px; }

/* Timeline metodo (home) */
.method-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.method-step { border-top: 2px solid var(--blue); padding-top: 18px; }
.method-step__n { font-family: var(--font-head); font-size: 34px; color: var(--blue); line-height: 1; margin-bottom: 16px; }
.method-step__title { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.method-step__desc { font-size: 13px; line-height: 1.55; color: #a8a8a8; margin: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }

/* =========================================================
   CHI SIAMO — sezioni numerate + galleria
   ========================================================= */
.numbered-list { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.numbered { display: grid; grid-template-columns: 40px 1fr; gap: 26px; align-items: start; }
.numbered__n { border-top: 3px solid var(--blue); padding-top: 14px; font-family: var(--font-head); color: var(--blue); font-size: 22px; }
.numbered__body h2 { font-size: clamp(22px, 3vw, 27px); font-weight: 800; font-family: var(--font-body); letter-spacing: -0.4px; line-height: 1.2; margin: 0 0 18px; }
.numbered__body p { font-size: 16px; line-height: 1.7; color: #444; margin: 0 0 16px; }
.numbered__body p:last-child { margin-bottom: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); grid-auto-rows: 200px; gap: 14px; }
.gallery .ph { border: none; border-radius: 6px; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

/* =========================================================
   COME LAVORIAMO — card step
   ========================================================= */
.step-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.step-card { border: 1px solid #e6e6e6; border-radius: var(--radius-lg); padding: 30px 30px 34px; }
.step-card__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.step-card__n { font-family: var(--font-head); font-size: 40px; color: var(--blue); line-height: 1; }
.step-card__title { font-family: var(--font-body); font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -0.3px; line-height: 1.2; }
.step-card p { font-size: 15px; line-height: 1.65; color: #555; margin: 0; }

/* =========================================================
   PRODOTTI (overview) — blocchi categoria alternati
   ========================================================= */
.cat-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 4vw, 48px); align-items: center; padding: 44px 0; border-top: 1px solid #e6e6e6; }
.cat-block__media { aspect-ratio: 16/10; }
.cat-block h2 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; font-family: var(--font-body); margin: 0 0 14px; letter-spacing: -0.5px; line-height: 1.2; }
.cat-block__desc { font-size: 16px; line-height: 1.65; color: #444; margin: 0 0 16px; }
.cat-block__list { font-size: 13px; color: #8a8a8a; margin-bottom: 22px; line-height: 1.6; }

/* =========================================================
   CATEGORIA — breadcrumb + tessere sottopagine
   ========================================================= */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--magenta); }
.crumbs .sep { color: #444; padding: 0 4px; }
.crumbs .current { color: var(--muted-2); }
.section--muted .crumbs .sep, .section--paper .crumbs .sep { color: #cfcfcf; }
.section--paper .crumbs .current, .section--muted .crumbs .current { color: var(--muted-3); }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.tile { border: 1px solid #e6e6e6; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.tile:hover { border-color: var(--ink); color: var(--ink); }
.tile__media { aspect-ratio: 3/2; border: none; border-radius: 0; }
.tile__body { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile__title { font-size: 18px; font-weight: 700; margin: 0; font-family: var(--font-body); }
.tile__arrow { color: var(--magenta); font-weight: 700; flex: none; }

/* =========================================================
   DETTAGLIO PRODOTTO — intro con aside, FAQ, form
   ========================================================= */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 4vw, 64px); align-items: start; }
.detail-main h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(32px, 5vw, 46px); line-height: 1.05; margin: 0 0 30px; }
.detail-main p { font-size: 16px; line-height: 1.7; color: #444; margin: 0 0 18px; }
.detail-aside__media { aspect-ratio: 4/5; }
.detail-card { margin-top: 20px; border: 1px solid #e6e6e6; border-radius: var(--radius-lg); padding: 22px 24px; }
.detail-card__title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.detail-card__text { font-size: 14px; color: #555; line-height: 1.55; margin-bottom: 18px; }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid #e6e6e6; border-radius: var(--radius-lg); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__sign { color: var(--magenta); font-size: 22px; font-weight: 400; flex: none; line-height: 1; transition: transform .2s ease; }
.faq__item[open] .faq__sign { transform: rotate(45deg); }
.faq__answer { padding: 0 22px 22px; font-size: 15px; line-height: 1.65; color: #555; }

/* =========================================================
   FORM (contatti + preventivo)
   ========================================================= */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px 24px; align-content: start; }
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: var(--radius);
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff;
}
.textarea { resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,160,226,.15); }
.field--check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #555; line-height: 1.5; font-weight: 400; }
.field--check input { margin-top: 3px; flex: none; }
.form__submit-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__note { font-size: 14px; color: #555; }
/* honeypot anti-spam */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { grid-column: 1 / -1; padding: 14px 18px; border-radius: var(--radius); font-size: 15px; line-height: 1.5; }
.alert--ok { background: #e8f7ee; border: 1px solid #b6e3c6; color: #1c6b39; }
.alert--err { background: #fdecef; border: 1px solid #f4b8c4; color: #a12036; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.contact-info__name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.contact-info__block { border-top: 1px solid #e6e6e6; padding-top: 26px; }
.contact-info__block .muted { font-size: 15px; color: #555; line-height: 1.7; }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn {
  border: 1px solid #d4d4d4; background: #fff; color: var(--ink); font-family: inherit;
  font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.pf-item {
  aspect-ratio: 3/4; border: 1px dashed #c4c4c4; background: #fff; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px;
}
.pf-item__cat { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--magenta); font-weight: 700; margin-bottom: 8px; }
.pf-item__label { font-family: monospace; font-size: 12px; color: #a0a0a0; line-height: 1.6; }
.pf-item.is-hidden { display: none; }

/* Tessera con foto reale (caricata dalla dashboard) */
.pf-card {
  margin: 0; background: #fff; border: 1px solid #e6e6e6; border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.pf-card.is-hidden { display: none; }
.pf-card__img { aspect-ratio: 3/4; width: 100%; object-fit: cover; }
.pf-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.pf-card__cat {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--magenta); font-weight: 700;
}
.pf-card__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.pf-card__desc { font-size: 14px; color: #666; line-height: 1.5; }
.note { margin-top: 34px; border-left: 3px solid var(--magenta); background: #fdf3f8; padding: 18px 22px; border-radius: var(--radius); font-size: 14px; line-height: 1.6; color: #6a4a58; }

/* =========================================================
   FASE 2 — BLOG (lista, dettaglio, paginazione)
   ========================================================= */

/* Colonna di lettura più stretta per gli articoli */
.container--narrow { max-width: 760px; }

/* I filtri categoria del blog sono link, non bottoni */
a.filter-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
a.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
a.filter-btn.is-active, a.filter-btn.is-active:hover { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.filter-btn__n { font-size: 12px; font-weight: 700; opacity: .55; }

/* Card articolo */
.post-card { background: #fff; }
.post-card__link { display: block; }
.post-card__img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.post-card__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted-3); margin-bottom: 12px;
}
.post-card__cat {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  color: var(--magenta); text-decoration: none;
}
.post-card__cat:hover { color: var(--magenta-dark); }
.post-card__titlelink { color: var(--ink); text-decoration: none; }
.post-card__titlelink:hover { color: var(--magenta); }
.post-card .card__title { line-height: 1.25; }
.post-card__more { display: inline-block; margin-top: 16px; font-size: 15px; }

/* Stato vuoto (nessun articolo / DB non raggiungibile) */
.empty-state {
  border: 1px dashed #c4c4c4; background: #fff; border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 56px); text-align: center;
}
.empty-state p { color: #555; margin-top: 12px; font-size: 16px; line-height: 1.6; }

/* Paginazione */
.pager { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 44px; }
.pager__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 10px 16px; border: 1px solid #d4d4d4; background: #fff;
  border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.pager__btn:hover { border-color: var(--ink); color: var(--ink); }
.pager__btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --------- Dettaglio articolo --------- */
.article-head { padding-bottom: clamp(24px, 4vw, 32px); }
.article-title {
  font-family: var(--font-head); font-weight: 400; letter-spacing: 0.5px;
  font-size: clamp(32px, 5vw, 46px); line-height: 1.06; margin: 0 0 20px;
}
.article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted-3);
}
.article-meta__sep { color: #cfcfcf; }
.article-lead {
  margin-top: 24px; font-size: 18px; line-height: 1.6; color: #444;
  border-left: 3px solid var(--blue); padding-left: 18px;
}
.article-cover { aspect-ratio: 16/9; width: 100%; object-fit: cover; border-radius: var(--radius-lg); }

/* Corpo dell'articolo (HTML dall'editor rich-text) */
.prose { font-size: 17px; line-height: 1.75; color: #333; overflow-wrap: anywhere; min-width: 0; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 22px; }
.prose h2 {
  font-family: var(--font-body); font-weight: 800; font-size: clamp(22px, 3vw, 27px);
  letter-spacing: -0.4px; line-height: 1.25; margin: 40px 0 16px;
}
.prose h3 { font-family: var(--font-body); font-weight: 700; font-size: 20px; margin: 32px 0 12px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose img, .prose figure, .prose video { max-width: 100%; height: auto; }
.prose img { border-radius: var(--radius-lg); margin: 28px 0; }
.prose pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; background: #f6f6f6; padding: 12px 16px; border-radius: var(--radius); }
.prose code { word-break: break-word; }
.prose a { text-decoration: underline; word-break: break-word; }
.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--magenta);
  color: #555; font-style: italic;
}
.prose strong { font-weight: 700; }
.prose hr { border: none; border-top: 1px solid #e6e6e6; margin: 36px 0; }

.article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e6e6e6; }

/* Barra di anteprima bozza (visibile solo all'amministratore) */
.preview-bar { background: #fdf6e3; border-bottom: 1px solid #ecd9a4; color: #8a6d1f; font-size: 14px; padding: 12px 0; }
.preview-bar strong { font-weight: 700; }
.preview-bar a { color: #8a6d1f; text-decoration: underline; margin-left: 8px; }
.preview-bar a:hover { color: var(--magenta); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  /* Su schermo stretto il testo occupa tutta la larghezza: la sfumatura
     diventa verticale e più intensa, così il testo resta leggibile ovunque. */
  .hero__inner { max-width: none; }
  .hero__scrim { background: linear-gradient(180deg, rgba(13,13,13,.5) 0%, rgba(13,13,13,.82) 100%); }
  .hero__caption { display: none; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stats__item { border-right: none; border-bottom: 1px solid var(--line); }
  .stats__item:last-child { border-bottom: none; }
  .method-grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item--tall { grid-row: auto; }
}

/* =========================================================
   UTILITY / ANIMAZIONI (rifinite in Fase 5)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Testo ricco dai campi con editor visuale (pannello Testi)
   ========================================================= */
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 1em; }
.rich-text ul, .rich-text ol { margin: 0 0 1em; padding-left: 1.4em; }
.rich-text li { margin: 0 0 .35em; }
.rich-text a { color: var(--blue); text-decoration: underline; }
.rich-text strong, .rich-text b { font-weight: 700; }
.rich-text h2, .rich-text h3 {
  font-family: var(--font-body); font-weight: 800; line-height: 1.25; margin: 1.1em 0 .5em;
}
.rich-text blockquote {
  margin: 0 0 1em; padding-left: 16px; border-left: 3px solid var(--magenta); color: inherit;
}
.rich-text .ql-align-center { text-align: center; }
.rich-text .ql-align-right { text-align: right; }
.rich-text .ql-align-justify { text-align: justify; }

/* =========================================================
   Pagina di ringraziamento
   ========================================================= */
.thankyou { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(8px,4vw,36px) 0; }
.thankyou__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 74px; height: 74px; border-radius: 50%;
  background: #e8f7ee; color: #1c8a4a; margin-bottom: 22px;
}
.thankyou__title {
  font-family: var(--font-head); font-weight: 400; line-height: 1.05;
  font-size: clamp(28px, 5vw, 44px); margin-bottom: 18px;
}
.thankyou__text { font-size: 17px; line-height: 1.7; color: #444; margin: 0 auto 14px; max-width: 56ch; }
.thankyou__text a { color: var(--blue); }
.thankyou__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* =========================================================
   Pulsante WhatsApp flottante
   ========================================================= */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.wa-float:focus-visible { outline: 3px solid rgba(37,211,102,.5); outline-offset: 2px; }
.wa-float svg { display: block; }
@media (max-width: 600px) { .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } .wa-float:hover { transform: none; } }
