/* ============================================================
   FRIMAR — Landing page
   Mobile-first. Conversione come obiettivo principale.
   ============================================================ */

/* Font auto-ospitati (SIL OFL) — no CDN, GDPR-friendly */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-variable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-italic-variable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-variable.woff2') format('woff2-variations');
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; }

/* ── Variabili ── */
:root {
  --cream:      #f5f1e8;
  --cream-deep: #ece6d9;
  --ink:        #1c1914;
  --ink-mid:    #3a3530;
  --muted:      #7a7268;
  --line:       #d8d0c2;
  --bronze:     #9a7345;
  --bronze-dk:  #7a5c38;
  --bronze-lt:  #c9a574;
  --dark:       #141210;
  --dark-2:     #1e1b17;
  --white:      #faf8f3;

  --ff-serif:   'Fraunces', Georgia, serif;
  --ff-sans:    'Manrope', system-ui, sans-serif;
  --ease:       cubic-bezier(.25,.8,.25,1);
  --w:          1160px;
  --px:         1.25rem;
}

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
}

.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ── Utilità tipografiche ── */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1rem;
}
.tag::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--bronze);
  vertical-align: middle;
  margin-right: 0.6rem;
}
.tag--light { color: var(--bronze-lt); }
.tag--light::before { background: var(--bronze-lt); }

h1, h2, h3 {
  font-family: var(--ff-serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 7.5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 5vw,  3.25rem); }
h3 { font-size: clamp(1.2rem,  3vw,  1.65rem); font-weight: 400; }

em { font-style: italic; color: var(--bronze); }

/* ── Bottoni ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--call {
  background: var(--bronze);
  color: #fff;
  box-shadow: 0 4px 20px rgba(154,115,69,.35);
}
.btn--call:hover {
  background: var(--bronze-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(154,115,69,.45);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(250,248,243,.35);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(250,248,243,.08);
}
.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--ink-mid);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER sticky
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.solid {
  background: rgba(28, 25, 20, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header-logo img {
  height: 34px;
  width: auto;
  display: block;
}
/* logo scuro → versione chiara sull'header scuro */
.logo-light { display: block; }
.logo-dark  { display: none; }

.header-tel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bronze);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background .2s var(--ease);
}
.header-tel:hover { background: var(--bronze-dk); }
.header-tel svg { width: 15px; height: 15px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--dark);
  color: var(--white);
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Motivo pietra in background (CSS-only) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(154,115,69,.12) 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(154,115,69,.08) 0%, transparent 45%),
    repeating-linear-gradient(
      -55deg,
      transparent 0 18px,
      rgba(255,255,255,.018) 18px 19px
    );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.hero-copy { max-width: 640px; }

.hero-copy .tag { color: rgba(201,165,116,.9); }
.hero-copy .tag::before { background: rgba(201,165,116,.9); }

.hero-copy h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-copy h1 em { color: var(--bronze-lt); }

.hero-copy .lead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.65;
  color: rgba(250,248,243,.72);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Campioni materiali nel hero */
.hero-slabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.hero-slab {
  width: 100%;
  max-width: 440px;
  height: 90px;
  border-radius: 9999px;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 12px 40px -12px rgba(0,0,0,.5),
    0 4px 12px -4px rgba(0,0,0,.3);
  animation: slabFloat 12s ease-in-out infinite;
}
.hero-slab:nth-child(2) {
  max-width: 380px;
  animation-delay: -4s;
  animation-duration: 14s;
}
.hero-slab:nth-child(3) {
  max-width: 320px;
  animation-delay: -8s;
  animation-duration: 16s;
}
@keyframes slabFloat {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  33%       { transform: translateX(-6px) rotate(-.3deg); }
  66%       { transform: translateX(4px) rotate(.2deg); }
}

/* Freccia scroll */
.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(201,165,116,.6);
  animation: scrollFade 3s ease-in-out infinite;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, rgba(201,165,116,.5), transparent);
}
@keyframes scrollFade {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}

/* ============================================================
   CHI SIAMO
   ============================================================ */
.about { padding: 5rem 0 4rem; background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text h2 em { color: var(--bronze); }
.about-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 58ch;
  margin-bottom: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-self: start;
}
.fact {
  background: var(--cream);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.fact b {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--bronze);
  line-height: 1;
}
.fact span {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* ============================================================
   COSA REALIZZIAMO
   ============================================================ */
.services {
  padding: 4rem 0;
  background: var(--dark-2);
  color: var(--white);
}
.services-head { margin-bottom: 2.5rem; }
.services-head h2 { color: var(--white); margin-bottom: 0.75rem; }
.services-head p {
  color: rgba(250,248,243,.65);
  font-size: 1rem;
  max-width: 50ch;
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
}
.service-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--dark);
}
.service-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .45;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.service-card:hover .service-card__bg {
  opacity: .65;
  transform: scale(1.04);
}
.service-card__body {
  position: absolute;
  inset: 0;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(14,12,10,.9) 0%,
    rgba(14,12,10,.3) 60%,
    transparent 100%
  );
}
.service-card__icon {
  width: 36px; height: 36px;
  color: var(--bronze-lt);
  margin-bottom: 0.75rem;
}
.service-card__title {
  font-family: var(--ff-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.service-card__sub {
  font-size: 0.8rem;
  color: rgba(250,248,243,.6);
  line-height: 1.5;
  max-width: 22ch;
}

/* ============================================================
   MATERIALI
   ============================================================ */
.materials { padding: 4rem 0; background: var(--cream-deep); }
.materials-head { margin-bottom: 2rem; }
.materials-head h2 { margin-bottom: 0.75rem; }
.materials-head h2 em { color: var(--bronze); }
.materials-head p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 55ch;
}

/* Strip orizzontale scrollabile */
.materials-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  /* Fade ai bordi */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 2rem,
    black calc(100% - 2rem),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 2rem,
    black calc(100% - 2rem),
    transparent 100%
  );
  padding-left: var(--px);
  padding-right: var(--px);
  margin-left: calc(-1 * var(--px));
  margin-right: calc(-1 * var(--px));
}
.materials-strip::-webkit-scrollbar { display: none; }

.mat-card {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.mat-card__img {
  width: 140px;
  height: 170px;
  border-radius: 100px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,.6);
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}
.mat-card:hover .mat-card__img {
  transform: translateY(-4px);
  border-color: var(--bronze);
}
.mat-card__name {
  font-family: var(--ff-serif);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}
.mat-card__type {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Indicatore swipe */
.swipe-hint {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.swipe-hint svg { width: 16px; height: 16px; }

/* ============================================================
   COME LAVORIAMO
   ============================================================ */
.process {
  padding: 4rem 0;
  background: var(--dark);
  color: var(--white);
}
.process-head { margin-bottom: 2.5rem; }
.process-head h2 { color: var(--white); margin-bottom: 0.5rem; }
.process-head h2 em { color: var(--bronze-lt); }
.process-head p {
  font-size: 1rem;
  color: rgba(250,248,243,.6);
  max-width: 45ch;
  line-height: 1.6;
}

.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background .3s;
}
.process-step:hover { background: rgba(255,255,255,.025); }
.step-num {
  flex-shrink: 0;
  font-family: var(--ff-serif);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--bronze-lt);
  line-height: 1;
  width: 2.5rem;
  margin-top: 0.1rem;
}
.step-body h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.step-body p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(250,248,243,.6);
}

/* ============================================================
   CONTATTACI — La sezione più importante
   ============================================================ */
.contact {
  padding: 4.5rem 0 5rem;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(154,115,69,.1) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(154,115,69,.07) 0%, transparent 45%);
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }
.contact h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.contact h2 em { color: var(--bronze-lt); }
.contact .lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(250,248,243,.7);
  max-width: 50ch;
  margin-bottom: 2.5rem;
}

/* Il numero di telefono come elemento primario */
.big-tel {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: color .2s var(--ease);
  margin-bottom: 0.75rem;
  word-break: break-all;
}
.big-tel:hover { color: var(--bronze-lt); }
.big-tel svg {
  flex-shrink: 0;
  width: 36px; height: 36px;
  color: var(--bronze-lt);
}

/* Email secondaria */
.big-email {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-sans);
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 400;
  color: rgba(250,248,243,.8);
  padding: 1rem 0;
  transition: color .2s var(--ease);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.5rem;
}
.big-email:hover { color: var(--bronze-lt); }
.big-email svg { width: 22px; height: 22px; color: var(--bronze-lt); flex-shrink: 0; }

/* Info aggiuntive */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(250,248,243,.65);
  line-height: 1.4;
}
.contact-row svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--bronze-lt); }
.contact-row a { color: rgba(250,248,243,.85); border-bottom: 1px solid rgba(201,165,116,.3); }
.contact-row a:hover { color: var(--bronze-lt); border-color: var(--bronze-lt); }

/* CTA secondaria (preventivo) */
.contact-cta-wrap {
  padding: 1.75rem;
  background: rgba(154,115,69,.12);
  border: 1px solid rgba(154,115,69,.2);
  border-radius: 2px;
}
.contact-cta-wrap p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(250,248,243,.75);
  margin-bottom: 1.25rem;
}
.contact-cta-wrap strong { color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(250,248,243,.4);
}
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--bronze-lt); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 200;
  max-width: 540px;
  margin: 0 auto;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  box-shadow: 0 16px 48px -12px rgba(0,0,0,.5);
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner__text {
  flex: 1 1 260px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(250,248,243,.75);
  margin: 0; max-width: none;
}
.cookie-banner__text strong { color: var(--white); }
.cookie-banner__text a { color: var(--bronze-lt); border-bottom: 1px solid rgba(201,165,116,.3); }
.cookie-banner__btn {
  flex: 0 0 auto;
  padding: 0.65rem 1.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bronze-lt);
  color: var(--ink);
  border-radius: 2px;
  transition: background .2s var(--ease);
  cursor: pointer;
}
.cookie-banner__btn:hover { background: #fff; }

/* ============================================================
   ANIMAZIONI DI ENTRATA
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-slab { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — Tablet e Desktop
   ============================================================ */
@media (min-width: 640px) {
  :root { --px: 2rem; }

  .facts { grid-template-columns: repeat(4, 1fr); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { aspect-ratio: 3 / 2; }

  .mat-card { flex: 0 0 160px; }
  .mat-card__img { width: 160px; height: 200px; }

  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-step { padding: 2rem; border-bottom: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .process-step { border-right: 1px solid rgba(255,255,255,.1); }
  .process-step:nth-child(2n) { border-right: 0; }

  .big-tel { font-size: clamp(2.5rem, 5vw, 3.5rem); }
}

@media (min-width: 900px) {
  :root { --px: 2.5rem; }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
  }
  .hero-slabs { align-items: flex-end; }
  .hero-slab { max-width: 100%; height: 110px; }
  .hero-slab:nth-child(2) { max-width: 88%; }
  .hero-slab:nth-child(3) { max-width: 75%; }

  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; }

  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card { aspect-ratio: 3 / 4; }
  .service-card__title { font-size: 1.2rem; }

  .materials-strip {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.25rem;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
    padding-left: 0; padding-right: 0;
    margin-left: 0; margin-right: 0;
  }
  .mat-card { flex: unset; }
  .mat-card__img { width: 100%; height: 220px; }
  .swipe-hint { display: none; }

  .process-list { grid-template-columns: repeat(4, 1fr); }
  .process-step { border-right: 1px solid rgba(255,255,255,.1); border-bottom: 0; }
  .process-step:last-child { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 0; }
}

@media (min-width: 1160px) {
  :root { --px: 3rem; }

  h1 { font-size: 4.5rem; }
  h2 { font-size: 3.25rem; }
}

/* Touch device: rimuovi hover effects costosi */
@media (hover: none) {
  .service-card:hover .service-card__bg { opacity: .45; transform: none; }
  .mat-card:hover .mat-card__img { transform: none; }
}

/* ── Foto sede ─────────────────────────────────────────────────────────── */
.sede-photo {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  align-self: start;
}
.sede-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 72%;
  display: block;
  transition: transform .6s cubic-bezier(.25,.8,.25,1);
}
.sede-photo:hover img { transform: scale(1.02); }

.sede-photo figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(to top, rgba(28,25,20,.75), transparent);
  font-size: 0.75rem;
  color: rgba(250,248,243,.75);
  letter-spacing: 0.06em;
}

/* Su desktop la foto occupa tutta la larghezza della griglia */
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* La foto si allunga fino a coprire l'intera altezza della colonna testo */
  .sede-photo {
    align-self: stretch;
    height: 100%;
  }
  .sede-photo img {
    height: 100%;
    min-height: 340px;
  }
}

@media (min-width: 1160px) {
  .sede-photo img { min-height: 400px; }
}

/* ── Brand partner ─────────────────────────────────────────────────────── */
.brands {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.brands__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.brands__label::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--muted);
  vertical-align: middle;
  margin-right: 0.6rem;
}
.brands__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.brand-badge {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid var(--bronze);
  background: rgba(154, 115, 69, 0.05);
  border-radius: 3px;
  transition: background .25s var(--ease);
}
.brand-badge:hover { background: rgba(154, 115, 69, 0.1); }
.brand-badge__name {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-badge__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (min-width: 600px) {
  .brands__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   PAGINE LEGALI (privacy.html, cookie.html)
   ========================================================================== */
.legal-hero {
  padding: 9rem 0 3.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1rem;
}
.legal-hero .lead {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.65;
  max-width: 60ch;
}
.legal-hero .meta {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.legal-body {
  padding: 2.5rem 0 5rem;
  background: var(--cream);
}

.legal-h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 400;
  color: var(--ink);
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  line-height: 1.2;
}
.legal-h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0.5rem; }

.legal-body p,
.legal-body li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 70ch;
  margin-bottom: 1rem;
}
.legal-body a {
  color: var(--bronze);
  border-bottom: 1px solid rgba(154,115,69,.3);
  transition: border-color .2s;
}
.legal-body a:hover { border-color: var(--bronze); }
.legal-body strong { color: var(--ink); font-weight: 600; }

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
}
.legal-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--bronze);
  font-weight: 700;
}

.legal-box {
  background: rgba(154,115,69,.06);
  border-left: 3px solid var(--bronze);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 70ch;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  border: 1px solid var(--line);
  max-width: 820px;
}
.legal-table th,
.legal-table td {
  padding: 0.85rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}
.legal-table th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream-deep);
  white-space: nowrap;
}
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table code {
  background: var(--cream-deep);
  padding: 2px 7px;
  border-radius: 3px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.82rem;
  color: var(--bronze-dk);
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}
.legal-footer a { color: var(--muted); border-bottom: 1px solid var(--line); }
.legal-footer a:hover { color: var(--bronze); }

@media (max-width: 640px) {
  .legal-table { display: block; overflow-x: auto; }
}

/* ── Link Google Maps ──────────────────────────────────────────────── */
.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bronze-lt);
  border-bottom: 1px solid rgba(201,165,116,.35);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.maps-link:hover { color: #fff; border-color: #fff; }
