/* ============================================================
   MARZIN S.R.L. — Calore e Risparmio
   Identità storica (rosso #BC0A24 + colori per categoria)
   in impaginazione editoriale: molta aria, filetti sottili,
   tipografia serif, animazioni discrete.
   ============================================================ */

:root {
  /* Identità */
  --red:      #BC0A24;
  --red-2:    #C40928;
  --red-dk:   #96071C;
  --red-soft: rgba(188, 10, 36, .07);

  /* Neutri caldi */
  --ink:      #171412;
  --ink-2:    #241F1C;
  --muted:    #6E6862;
  --muted-w:  rgba(255,255,255,.7);
  --paper:    #FAF8F5;
  --paper-2:  #F1EDE8;
  --white:    #FFFFFF;

  --line:      rgba(23, 20, 18, .12);
  --line-soft: rgba(23, 20, 18, .07);
  --line-w:    rgba(255, 255, 255, .22);

  /* Colori per categoria (dal sito storico, riequilibrati) */
  --c-stufe:   #938B0C;
  --c-caldaie: #D5601D;
  --c-camini:  #0E9B93;
  --c-fumarie: #6E6862;
  --c-ricambi: #C40928;
  --c-lavori:  #8A6A3A;

  --maxw: 1200px;
  --gut: clamp(1.2rem, 4vw, 2.5rem);
  --gap: clamp(1.15rem, 2.3vw, 1.9rem);

  --r: 3px;
  --shadow: 0 1px 2px rgba(23,20,18,.04), 0 16px 40px -22px rgba(23,20,18,.26);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-2: cubic-bezier(.4, 0, .2, 1);

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --hh: 90px;
  --hh-s: 66px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh-s) + 1.5rem); }
body {
  font-family: var(--sans);
  font-size: 1rem; line-height: 1.7;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

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

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 380; line-height: 1.13;
  letter-spacing: -.014em; color: var(--ink); font-optical-sizing: auto;
}
h1 { font-size: clamp(2.3rem, 1.5rem + 3.3vw, 3.95rem); line-height: 1.06; letter-spacing: -.024em; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.85rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.14rem, 1.04rem + .42vw, 1.36rem); font-weight: 430; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 460; }
p { color: var(--muted); }
strong { color: var(--ink); font-weight: 550; }

.lead { font-size: clamp(1.07rem, .99rem + .38vw, 1.25rem); line-height: 1.62; color: var(--ink-2); font-weight: 380; }

.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--sans); font-size: .69rem; font-weight: 650;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor; flex: none;
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .12s;
}
.reveal.in .eyebrow::before, .in .eyebrow::before, .is-ready .page-hero .eyebrow::before { transform: scaleX(1); }
.center .eyebrow { justify-content: center; }
.center .eyebrow::before { display: none; }
section.dark .eyebrow, .on-dark .eyebrow { color: #fff; }

/* ---------- Layout ---------- */
.container { width: min(100% - (var(--gut) * 2), var(--maxw)); margin-inline: auto; }
section { padding: clamp(4rem, 2.8rem + 5.6vw, 7.5rem) 0; position: relative; }
section.tight { padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
section.alt { background: var(--paper-2); }
section.dark { background: var(--ink); color: #fff; }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: #fff; }
section.dark p { color: var(--muted-w); }
section.dark strong { color: #fff; }

.section-head { max-width: 45rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head p { margin-top: 1.05rem; font-size: 1.04rem; max-width: 40rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem;
  flex-wrap: wrap; margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
.head-row .section-head { margin-bottom: 0; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.6rem; border-radius: var(--r);
  font-size: .87rem; font-weight: 550; letter-spacing: .008em;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .35s var(--ease-2), color .35s var(--ease-2),
              border-color .35s var(--ease-2);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dk); border-color: var(--red-dk); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.88); }
.btn-ghost-w { border-color: var(--line-w); color: #fff; }
.btn-ghost-w:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .865rem; font-weight: 550; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid var(--line);
  transition: border-color .35s var(--ease-2), color .35s var(--ease-2);
}
.link svg { width: 1em; height: 1em; transition: transform .4s var(--ease); }
.link:hover { color: var(--red); border-color: var(--red); }
.link:hover svg { transform: translateX(3px); }
section.dark .link, .on-dark .link { color: #fff; border-color: var(--line-w); }
section.dark .link:hover, .on-dark .link:hover { border-color: #fff; }

/* ============================================================
   LOGO
   ============================================================ */
.logo { display: inline-flex; align-items: center; gap: .62rem; }
.logo-flame { width: 25px; height: 30px; flex: none; color: var(--red); transition: color .35s var(--ease-2); }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-word {
  font-family: var(--sans); font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em;
  color: var(--red); transition: color .35s var(--ease-2);
}
.logo-tag {
  margin-top: 4px; font-size: .485rem; font-weight: 650; letter-spacing: .27em;
  text-transform: uppercase; color: var(--muted); transition: color .35s var(--ease-2);
}
.logo.on-red .logo-flame, .logo.on-red .logo-word { color: #fff; }
.logo.on-red .logo-tag { color: rgba(255,255,255,.72); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hh);
  display: flex; align-items: center; background: rgba(250,248,245,.92);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .45s var(--ease), border-color .4s var(--ease-2), box-shadow .4s var(--ease-2);
}
.site-header.scrolled { height: var(--hh-s); border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: 1.42rem; }
.nav-link {
  position: relative; font-size: .82rem; font-weight: 480; letter-spacing: -.002em;
  color: var(--ink); padding: .4rem 0; white-space: nowrap; transition: color .3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-link:hover { color: var(--red); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] { color: var(--red); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { font-size: .8rem; padding: .6rem 1.2rem; }

.burger { display: none; flex-direction: column; gap: 6px; padding: .5rem; z-index: 110; }
.burger i { display: block; width: 24px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), opacity .25s, background .3s; }
.burger.open i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: flex; }
  .burger.open i { background: #fff; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); z-index: 105;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.25rem;
    padding: 2rem clamp(1.5rem, 6vw, 2.6rem); background: var(--ink);
    transform: translateX(101%); transition: transform .55s var(--ease); overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .nav .nav-link { color: #fff; font-family: var(--serif); font-size: 1.42rem; font-weight: 360; letter-spacing: -.02em; }
  .nav .nav-link[aria-current="page"] { color: #fff; }
  .nav .nav-cta { width: 100%; font-family: var(--sans); }
  body.menu-open { overflow: hidden; }
}
.scrim {
  position: fixed; inset: 0; z-index: 95; background: rgba(10,8,7,.48);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s var(--ease-2), visibility .5s;
}
.scrim.show { opacity: 1; visibility: visible; pointer-events: auto; }

/* ============================================================
   SLIDER
   ============================================================ */
.hero { position: relative; margin-top: var(--hh); background: var(--ink); overflow: hidden; }
.slider { position: relative; height: clamp(460px, 68vh, 680px); }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.2s var(--ease-2), visibility 1.2s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide picture, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide img { object-fit: cover; transform: scale(1.05); transition: transform 8s linear; }
.slide.active img { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(80deg, rgba(14,11,9,.8) 0%, rgba(14,11,9,.5) 44%, rgba(14,11,9,.1) 74%, rgba(14,11,9,.28) 100%);
}

.slide-copy { position: absolute; inset: auto 0 0 0; z-index: 3; padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.slide-copy .inner { max-width: 33rem; color: #fff; }
.slide-copy .kicker {
  display: flex; align-items: center; gap: .75rem;
  font-size: .68rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.25rem;
}
.slide-copy .kicker::before { content: ""; width: 26px; height: 2px; background: var(--red-2); flex: none; }
.slide-copy h1, .slide-copy h2 {
  color: #fff; font-family: var(--serif); font-weight: 350;
  font-size: clamp(2rem, 1.25rem + 3.2vw, 3.55rem); line-height: 1.07; letter-spacing: -.024em;
}
.slide-copy h1 em, .slide-copy h2 em { font-style: italic; color: #fff; }
.slide-copy p { color: rgba(255,255,255,.8); margin-top: 1.15rem; font-size: clamp(.99rem, .95rem + .25vw, 1.11rem); max-width: 29rem; line-height: 1.62; }
.slide-copy .acts { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* rivelo riga per riga */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(106%); transition: transform 1.1s var(--ease); }
.slide.active .line-mask > span { transform: translateY(0); }
.slide.active .line-mask:nth-child(2) > span { transition-delay: .09s; }

.slide .anim { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.slide.active .anim { opacity: 1; transform: none; }
.slide.active .anim.a1 { transition-delay: .06s; }
.slide.active .anim.a2 { transition-delay: .3s; }
.slide.active .anim.a3 { transition-delay: .4s; }

/* controlli */
.slider-ui { position: absolute; inset: auto 0 0 0; z-index: 5; padding-bottom: clamp(1.2rem, 2.4vw, 1.8rem); }
.slider-ui .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dots { display: flex; gap: .6rem; }
.dot { width: 28px; height: 2px; background: rgba(255,255,255,.28); transition: background .4s var(--ease-2); }
.dot.active { background: var(--red-2); }
.dot:hover { background: rgba(255,255,255,.6); }
.arrows { display: flex; gap: .5rem; }
.arrow {
  width: 42px; height: 42px; border: 1px solid var(--line-w); border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  transition: background .35s var(--ease-2), border-color .35s, color .35s;
}
.arrow svg { width: 16px; height: 16px; }
.arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 640px) { .arrows { display: none; } }

/* barra payoff */
.payoff { background: var(--red); color: #fff; padding: clamp(.95rem, 1.7vw, 1.25rem) 0; }
.payoff .container { display: flex; align-items: center; justify-content: center; gap: clamp(1.1rem, 4.5vw, 4rem); flex-wrap: wrap; }
.payoff span {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .715rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase;
}
.payoff svg { width: 14px; height: 14px; flex: none; opacity: .8; }

/* ---------- Page hero ---------- */
.page-hero {
  margin-top: var(--hh); position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding: clamp(3.25rem, 6vw, 5.5rem) 0 clamp(2.75rem, 5vw, 4.5rem);
}
.page-hero.with-photo picture { position: absolute; inset: 0; }
.page-hero.with-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(80deg, rgba(14,11,9,.9), rgba(14,11,9,.4)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .inner { max-width: 44rem; }
.page-hero h1 { color: #fff; font-weight: 350; font-size: clamp(2.05rem, 1.4rem + 2.6vw, 3.3rem); }
.page-hero p { color: rgba(255,255,255,.78); margin-top: 1.2rem; font-size: clamp(1rem, .96rem + .28vw, 1.13rem); max-width: 37rem; line-height: 1.64; }
.crumb { font-size: .715rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.58); margin-bottom: 1.25rem; }
.crumb a:hover { color: #fff; }
.crumb i { font-style: normal; opacity: .5; margin: 0 .5rem; }

/* ============================================================
   CATEGORIE
   ============================================================ */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }
.cats.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cats.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cats.cols-3 { grid-template-columns: 1fr; } }

.cat {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .45s;
}
.cat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 3;
  background: var(--cc, var(--red)); transition: height .45s var(--ease);
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cat:hover::before { height: 5px; }
.cat-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cat:hover .cat-media img { transform: scale(1.045); }
.cat-body { padding: 1.4rem 1.45rem 1.55rem; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { margin-bottom: .55rem; }
.cat-body p { font-size: .915rem; line-height: 1.62; flex: 1; }
.cat-more {
  margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .69rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cc, var(--red));
}
.cat-more svg { width: 13px; height: 13px; transition: transform .4s var(--ease); }
.cat:hover .cat-more svg { transform: translateX(4px); }

/* ============================================================
   CARD
   ============================================================ */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 2.3vw, 1.95rem);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .45s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic { color: var(--red); margin-bottom: 1.2rem; }
.card .ic svg { width: 25px; height: 25px; stroke-width: 1.25; }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .93rem; line-height: 1.65; }
section.dark .card { background: var(--ink-2); border-color: var(--line-w); }
section.dark .card:hover { border-color: rgba(255,255,255,.32); box-shadow: none; }
section.dark .card .ic { color: #fff; }

.numcard { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.numcard .num { font-family: var(--serif); font-size: .95rem; font-weight: 460; color: var(--red); letter-spacing: .04em; padding-top: .25rem; }

/* ---------- Elenco puntato ---------- */
.checks { display: grid; margin-top: 1.7rem; }
.checks li {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem;
  padding: .95rem 0; border-top: 1px solid var(--line);
  font-size: .955rem; color: var(--muted); line-height: 1.62;
}
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks .tick { color: var(--red); margin-top: .38rem; }
.checks .tick svg { width: 13px; height: 13px; stroke-width: 2.4; }
.checks strong { display: block; color: var(--ink); font-weight: 560; margin-bottom: .14rem; }
section.dark .checks li { border-color: var(--line-w); color: var(--muted-w); }
section.dark .checks .tick { color: #fff; }

/* ============================================================
   SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } .split.reverse .split-media { order: 0; } }
.split-media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line-soft); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-copy h2 { margin-bottom: 1.2rem; }
.split-copy p + p { margin-top: 1rem; }

/* ============================================================
   MARCHI
   ============================================================ */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 980px) { .brands { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .brands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .brands { grid-template-columns: repeat(2, 1fr); } }
.brands li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands a, .brands span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 98px; padding: 1rem .7rem;
  font-family: var(--serif); font-size: 1.06rem; font-weight: 430; letter-spacing: 0;
  color: var(--ink); opacity: .62;
  transition: opacity .4s var(--ease-2), color .4s, background .4s;
}
.brands a:hover { opacity: 1; color: var(--red); background: var(--red-soft); }
section.dark .brands, section.dark .brands li { border-color: var(--line-w); }
section.dark .brands a, section.dark .brands span { color: #fff; opacity: .56; }
section.dark .brands a:hover { opacity: 1; background: rgba(255,255,255,.05); }

/* ============================================================
   NEWS
   ============================================================ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 940px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .45s;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post-media img { transform: scale(1.045); }
.post-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem;
  font-size: .655rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.post-meta .tagd { color: var(--red); }
.post-body h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.post-body p { font-size: .9rem; line-height: 1.62; flex: 1; }

/* ============================================================
   PROMOZIONI
   ============================================================ */
.promo {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
@media (max-width: 800px) { .promo { grid-template-columns: 1fr; } }
.promo + .promo { margin-top: var(--gap); }
.promo-media { position: relative; min-height: 280px; background: var(--paper-2); }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo.reverse .promo-media { order: 2; }
@media (max-width: 800px) { .promo.reverse .promo-media { order: 0; } }
.promo-body { padding: clamp(1.75rem, 3.2vw, 2.85rem); display: flex; flex-direction: column; justify-content: center; }
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem;
  font-size: .665rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1.15rem;
}
.badge::before { content: ""; width: 24px; height: 2px; background: var(--red); flex: none; }
.promo-body h3 { font-size: clamp(1.35rem, 1.12rem + .85vw, 1.8rem); margin-bottom: .75rem; }
.promo-body p { font-size: .96rem; }
.promo-body .acts { margin-top: 1.6rem; display: flex; gap: .7rem; flex-wrap: wrap; }

/* ============================================================
   GALLERIA
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 940px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.shot { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.045); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(14,11,9,.82));
  color: #fff; font-size: .85rem; font-weight: 480;
}
.shot.empty {
  display: grid; place-items: center; aspect-ratio: 4 / 3; text-align: center;
  border: 1px dashed var(--line); background: transparent; padding: 1.75rem;
}
.shot.empty p { font-size: .87rem; line-height: 1.62; }

/* ============================================================
   CTA
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--red); color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: 1fr auto; gap: 2.25rem; align-items: center;
}
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; } .cta-band .eyebrow { justify-content: center; } .cta-band .eyebrow::before { display: none; } }
.cta-band::after {
  content: ""; position: absolute; right: -8%; top: -70%; width: 48%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 66%); pointer-events: none;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band .eyebrow { color: #fff; }
.cta-band h2 { color: #fff; max-width: 24ch; font-weight: 350; }
.cta-band p { color: rgba(255,255,255,.84); margin-top: .9rem; max-width: 46ch; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.info li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.info li:last-child { border-bottom: 1px solid var(--line); }
.info .ic { color: var(--red); padding-top: .3rem; }
.info .ic svg { width: 17px; height: 17px; stroke-width: 1.4; }
.info .k { font-size: .665rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.info .v { margin-top: .3rem; font-size: 1rem; color: var(--ink); line-height: 1.55; font-weight: 460; }
.info a.v:hover { color: var(--red); }
.info .v.soft { font-size: .93rem; font-weight: 400; color: var(--muted); }
.on-dark .info li { border-color: var(--line-w); }
.on-dark .info .ic, .on-dark .info .v, .on-dark .info a.v { color: #fff; }
.on-dark .info .k { color: rgba(255,255,255,.55); }

.map { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 2rem; }
.map iframe { display: block; border: 0; width: 100%; height: 320px; filter: grayscale(.35) contrast(1.02); }

.form { display: grid; gap: 1.15rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 540px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .7rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .82rem .95rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink);
  transition: border-color .3s var(--ease-2), box-shadow .3s var(--ease-2);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #A9A29C; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(188,10,36,.1);
}
.form-note { font-size: .79rem; color: var(--muted); line-height: 1.55; }
.form-ok {
  display: none; padding: .95rem 1.15rem; border-radius: var(--r);
  border: 1px solid rgba(188,10,36,.28); background: var(--red-soft); color: var(--red);
  font-size: .9rem; font-weight: 500;
}
.form-ok.show { display: block; }

.quick { background: var(--ink); color: #fff; }
.quick .field label { color: rgba(255,255,255,.55); }
.quick .field input, .quick .field select, .quick .field textarea {
  background: rgba(255,255,255,.05); border-color: var(--line-w); color: #fff;
}
.quick .field input::placeholder, .quick .field textarea::placeholder { color: rgba(255,255,255,.38); }
.quick .field input:focus, .quick .field select:focus, .quick .field textarea:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.quick .form-note { color: rgba(255,255,255,.5); }
.quick .form-ok { background: rgba(255,255,255,.08); border-color: var(--line-w); color: #fff; }
.quick option { color: var(--ink); }

/* ============================================================
   FOOTER — rosso, come nel sito storico
   ============================================================ */
.site-footer { background: var(--red); color: rgba(255,255,255,.8); padding: clamp(3.25rem, 5vw, 4.75rem) 0 1.9rem; }
.footer-top {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.35fr; gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 4vw, 3.25rem); border-bottom: 1px solid rgba(255,255,255,.2);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2.25rem; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 1.2rem; font-size: .88rem; line-height: 1.68; color: rgba(255,255,255,.78); max-width: 23rem; }
.footer-col h4 { font-family: var(--sans); font-size: .665rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 1.2rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.8); transition: color .3s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .6rem; font-size: .88rem; line-height: 1.62; }
.footer-contact svg { width: 15px; height: 15px; stroke-width: 1.5; color: #fff; margin-top: .32rem; }
.footer-bottom {
  padding-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .9rem; font-size: .755rem; color: rgba(255,255,255,.72);
}
.powered a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.38); padding-bottom: 1px; transition: border-color .3s; }
.powered a:hover { border-color: #fff; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .95s var(--ease), transform .95s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .07s; } .d2 { transition-delay: .14s; }
.d3 { transition-delay: .21s; } .d4 { transition-delay: .28s; } .d5 { transition-delay: .35s; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 1.8rem; } .mt-3 { margin-top: 2.6rem; }
.note { font-size: .8rem; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; padding: .1em .35em; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r); font-size: .85rem; }
.skip:focus { left: 1rem; top: 1rem; }
