/* =====================================================================
   ALBA GATES — Sito Internazionale
   Design system 1:1 con la presentazione strategica (Coesiva, mag 2026)
   Font: Montserrat (display) + Source Serif 4 (testo)
   ===================================================================== */

:root {
  --rosso: #E30613;
  --rosso-scuro: #B00410;
  --nero: #1E1E1C;
  --bianco: #FAFAF8;
  --perla: #E8E6E2;
  --scuro: #3A3A38;
  --medio: #6B6B6B;
  --chiaro: #F5F5F5;

  --mont: 'Montserrat', Arial, Helvetica, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --shadow: 0 2px 24px rgba(0, 0, 0, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--scuro);
  background: var(--bianco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.mont { font-family: var(--mont); }
.red { color: var(--rosso); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  font-family: var(--mont);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--rosso);
  margin-bottom: 18px;
}
.eyebrow.muted { color: var(--medio); }

.redbar { width: 56px; height: 3px; background: var(--rosso); margin-bottom: 24px; }

h2.section-title {
  font-family: var(--mont);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.8px;
  color: var(--nero);
}
.section-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--medio);
  max-width: 60ch;
  margin-top: 18px;
}

/* ====== HEADER ====== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  background: rgba(30, 30, 28, 0);
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  background: rgba(30, 30, 28, 0.96);
  padding-top: 12px; padding-bottom: 12px;
  box-shadow: 0 1px 20px rgba(0,0,0,.25);
}
.site-header .logo img { height: 30px; width: auto; }
.header-right { display: flex; align-items: center; gap: 22px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mont);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
}
.lang-switch a {
  color: rgba(255,255,255,0.6);
  padding: 4px 7px;
  border-radius: 3px;
  transition: color .2s ease, background .2s ease;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { color: #fff; background: var(--rosso); }
.lang-switch .sep { color: rgba(255,255,255,0.25); }

.btn {
  display: inline-block;
  font-family: var(--mont);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 13px 26px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--rosso); color: #fff; }
.btn-primary:hover { background: var(--rosso-scuro); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(227,6,19,.32); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--nero); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.header-cta { padding: 10px 20px; }

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  /* Secondo layer: scrim in alto → logo/nav sempre leggibili su qualsiasi foto */
  background:
    linear-gradient(180deg, rgba(30,30,28,.62) 0%, rgba(30,30,28,0) 22%),
    linear-gradient(115deg, rgba(30,30,28,.72) 0%, rgba(30,30,28,.38) 45%, rgba(30,30,28,.85) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(70px, 12vh, 130px); padding-top: 120px; }
.hero .redbar { margin-bottom: 26px; }
.hero-eyebrow {
  font-family: var(--mont);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,.8);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--mont);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -1.5px;
  max-width: 16ch;
}
.hero h1 .thin { font-weight: 300; color: rgba(255,255,255,.82); display: block; font-size: .82em; margin-bottom: 6px; }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,.9);
  max-width: 54ch;
  margin-top: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-family: var(--mont); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.6);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll .line { width: 1px; height: 34px; background: rgba(255,255,255,.4); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.3;transform:scaleY(.6)} 50%{opacity:1;transform:scaleY(1)} }

/* ====== SECTION SHELL ====== */
section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 64px); }

/* ====== AGENT / REFERENTE ====== */
.agent {
  background: var(--nero);
  color: #fff;
}
.agent .wrap {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.agent-photo {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--rosso);
  background: var(--scuro);
}
.agent-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mont); font-weight: 800; font-size: 44px; color: rgba(255,255,255,.85);
}
.agent-role {
  font-family: var(--mont); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px; color: var(--rosso); margin-bottom: 10px;
}
.agent-name { font-family: var(--mont); font-weight: 800; font-size: clamp(26px, 3.5vw, 38px); line-height: 1.05; margin-bottom: 8px; }
.agent-tagline { font-family: var(--serif); font-style: italic; font-size: 17px; color: rgba(255,255,255,.75); max-width: 44ch; }
.agent-contacts { display: flex; flex-direction: column; gap: 10px; }
.agent-contacts a {
  font-family: var(--mont); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9);
  transition: color .2s ease;
}
.agent-contacts a:hover { color: var(--rosso); }
.agent-contacts .ic { color: var(--rosso); width: 18px; text-align: center; }
.ph-note {
  display: inline-block; margin-top: 14px; font-family: var(--mont); font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase; color: #E0B84C;
  background: rgba(255,215,0,.08); border: 1px dashed rgba(255,215,0,.35);
  padding: 3px 9px; border-radius: 3px;
}

/* ====== RANGE / GAMMA ====== */
.range-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.range-card {
  position: relative; overflow: hidden; border-radius: 3px;
  aspect-ratio: 3 / 4; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.range-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.range-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,30,28,.05) 30%, rgba(30,30,28,.88) 100%); }
.range-card:hover img { transform: scale(1.06); }
.range-card .rc-body { position: relative; z-index: 2; padding: 24px 22px; }
.range-card .rc-title { font-family: var(--mont); font-weight: 800; font-size: 22px; letter-spacing: -0.3px; margin-bottom: 6px; }
.range-card .rc-desc { font-family: var(--serif); font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.4; }
.range-card .rc-bar { width: 30px; height: 3px; background: var(--rosso); margin-bottom: 14px; }

/* ====== MADE IN ITALY ====== */
.mii { background: var(--chiaro); }
.mii .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.mii-figure { position: relative; border-radius: 3px; overflow: hidden; aspect-ratio: 4/3; }
.mii-figure img { width: 100%; height: 100%; object-fit: cover; }
.mii-facts { list-style: none; margin-top: 30px; }
.mii-facts li {
  position: relative; padding: 18px 0 18px 40px; border-top: 1px solid var(--perla);
  font-family: var(--serif); font-size: 16px; line-height: 1.5;
}
.mii-facts li:last-child { border-bottom: 1px solid var(--perla); }
.mii-facts li strong { font-family: var(--mont); font-weight: 700; color: var(--nero); }
.mii-facts li .n {
  position: absolute; left: 0; top: 18px; font-family: var(--mont); font-weight: 800;
  font-size: 18px; color: var(--rosso); line-height: 1;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.badge {
  font-family: var(--mont); font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--nero); background: #fff; border: 1px solid var(--perla);
  padding: 9px 16px; border-radius: 3px;
}

/* ====== REFERENCES ====== */
.refs-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 560px; }
.ref { position: relative; overflow: hidden; border-radius: 3px; }
.ref:first-child { grid-row: span 2; }
.ref img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.ref:hover img { transform: scale(1.05); }
.ref .cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-family: var(--mont); font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #fff;
  background: rgba(30,30,28,.72); padding: 6px 12px; border-radius: 2px;
}

/* ====== FINAL CTA / LEAD ====== */
.lead { background: var(--nero); color: #fff; position: relative; overflow: hidden; }
.lead::before { content: ''; position: absolute; top: 0; left: 0; width: 120px; height: 4px; background: var(--rosso); }
.lead .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.lead h2 { font-family: var(--mont); font-weight: 800; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -1px; }
.lead h2 .thin { font-weight: 300; color: rgba(255,255,255,.72); display: block; }
.lead p.lead-text { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.82); margin-top: 22px; max-width: 48ch; }
.lead-claim { font-family: var(--serif); font-style: italic; font-size: 17px; color: rgba(255,255,255,.7); margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.lead-claim .r { color: var(--rosso); }

.lead-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px; padding: clamp(26px, 4vw, 40px);
}
.lead-form .form-title { font-family: var(--mont); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.lead-form .form-sub { font-family: var(--serif); font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--mont); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font-family: var(--serif); font-size: 15px; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: 3px; padding: 12px 14px; transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field select:focus { outline: none; border-color: var(--rosso); background: rgba(255,255,255,.09); }
.field select option { color: #1E1E1C; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 20px; }
.form-consent input { margin-top: 4px; accent-color: var(--rosso); }
.form-consent label { font-family: var(--serif); font-size: 12.5px; color: rgba(255,255,255,.6); line-height: 1.45; }
.lead-form .btn-primary { width: 100%; padding: 15px; font-size: 14px; }
.form-note { font-family: var(--mont); font-size: 10px; letter-spacing: .5px; color: rgba(255,255,255,.4); margin-top: 12px; text-align: center; }

/* ====== FOOTER ====== */
.site-footer { background: #141412; color: rgba(255,255,255,.7); padding: 60px 0 34px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img.flogo { height: 34px; margin-bottom: 18px; }
.site-footer .fclaim { font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(255,255,255,.55); max-width: 34ch; }
.site-footer h4 { font-family: var(--mont); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer a, .site-footer p { font-family: var(--serif); font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--rosso); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mont); font-size: 11px; letter-spacing: .5px; color: rgba(255,255,255,.4);
}

/* Honeypot anti-spam — nascosto ai umani, visibile ai bot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ====== REVEAL ANIM ======
   Gated dietro html.js (aggiunta da site.js): se il JS non carica,
   i contenuti restano visibili — progressive enhancement. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .range-grid { grid-template-columns: repeat(2, 1fr); }
  .agent .wrap { grid-template-columns: 120px 1fr; grid-template-areas: "photo info" "contacts contacts"; row-gap: 28px; }
  .agent-photo { grid-area: photo; width: 120px; height: 120px; }
  .refs-grid { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 200px); }
  .refs-grid .ref:first-child { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 760px) {
  .mii .wrap, .lead .wrap { grid-template-columns: 1fr; }
  .mii-figure { order: -1; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 30px; }
  .header-cta { display: none; }
  .agent .wrap { grid-template-columns: 90px 1fr; }
  .agent-photo { width: 90px; height: 90px; }
  .agent-photo.placeholder { font-size: 26px; }
  .hero h1 { letter-spacing: -0.8px; }
}
@media (max-width: 560px) {
  .range-grid { grid-template-columns: 1fr; }
  .range-card { aspect-ratio: 16 / 10; } /* colonna singola: card orizzontali */
  .refs-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 180px); }
  .refs-grid .ref:first-child { grid-column: span 1; }
}
