/* Bert Italia srl — Sport Illuminated
   Direzione: planche de projet sur papier crème (départ zapier), vert du terrain. */

:root {
  --paper: #fbf8f0;
  --sand: #e9e4d6;
  --rule: #cbc4b0;
  --ink: #16201a;
  --text: #38403a;
  --muted: #6c7068;
  --green: #1e6b3c;
  --green-dk: #15532d;
  --night: #0f2a1c;
  --night-2: #133524;
  --led: #f4f7ef;
  --led-dim: #c9d6c6;

  --r: 6px;
  --r-card: 8px;
  --r-img: 3px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--green); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- information : cartouche technique (jamais une forme de bouton) ---------- */
.cartouche {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--muted);
  margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); display: inline-block;
}
.cartouche--night { color: var(--led-dim); border-bottom-color: rgba(244,247,239,.22); }

/* ---------- action : boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: var(--r);
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, transform .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn--primary:hover { background: var(--green-dk); }
.btn--lg { min-height: 56px; padding: 16px 24px; font-size: 17px; }
.btn--ghost { background: transparent; color: var(--led); border-color: rgba(244,247,239,.5); }
.btn--ghost:hover { background: rgba(244,247,239,.08); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251,248,240,.96); border-bottom: 1px solid var(--rule);
}
.header__row { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { flex: 0 0 auto; white-space: nowrap; text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo__img { display: block; height: 44px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 10px 0; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow .2s; white-space: nowrap; }
.nav a:hover { box-shadow: inset 0 -2px 0 var(--green); }
.header__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.btn-call {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
  border-radius: var(--r); cursor: pointer;
}
.btn-call:hover { color: var(--green); }
.btn-call__short { display: none; }
.btn--head { min-height: 44px; padding: 10px 16px; font-size: 15px; white-space: nowrap; }
.lbl-short { display: none; }
.burger {
  display: none; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid var(--rule);
  background: transparent; border-radius: var(--r); cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); }

/* menu : frère du header, display:none quand fermé */
.menu { display: none; }
.menu.is-open {
  display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 60;
  background: var(--paper); padding: calc(var(--header-h) + 16px) 24px 32px; overflow-y: auto;
  animation: menuIn .25s ease;
}
@keyframes menuIn { from { transform: translateY(-8px); } to { transform: none; } }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-family: var(--serif); font-size: 24px; color: var(--ink); text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--rule); min-height: 44px;
}
.menu__foot { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.menu__tel { font-family: var(--mono); font-size: 17px; color: var(--green); padding: 10px 0; min-height: 44px; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { z-index: 70; backdrop-filter: none; }

/* ---------- HERO ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero__bg {
  position: absolute; inset: -40px; z-index: 0;
  background: url("https://storage.googleapis.com/msgsndr/nVGiINqd8qfyNO19EctM/media/6ace39c804c496731f51568e.jpg") 70% 60% / cover no-repeat;
  filter: blur(5px); transform: scale(1.06);
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(251,248,240,.93) 0%, rgba(251,248,240,.84) 44%, rgba(251,248,240,.42) 100%);
}
.hero__grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px;
  align-items: start; padding-block: 64px 72px;
}
.hero__text { padding-top: 28px; }
.hero h1 { font-size: 64px; line-height: 1.02; max-width: 12ch; margin-bottom: 24px; }
.hero__sub { font-size: 19px; color: var(--ink); max-width: 36em; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.link-tel { color: var(--ink); font-weight: 600; text-underline-offset: 4px; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.hero__fud { font-family: var(--mono); font-size: 13px; color: var(--text); margin-top: 18px; }
.capture-panel {
  background: rgba(255,255,255,.94); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 10px;
}
.embed--form { min-height: 750px; }

/* ---------- sections ---------- */
.sec { padding-block: 96px; }
.sec--paper { background: var(--paper); }
.sec--sand { background: var(--sand); }
.sec--night { background: var(--night); color: var(--led-dim); }
.sec--night h2, .sec--night h3 { color: var(--led); }
.sec--night h2 em { color: #a9d8a0; }
.sec--rule { border-top: 1px solid var(--rule); }
.sec h2 { font-size: 46px; line-height: 1.08; max-width: 18ch; margin-bottom: 18px; }
.sec__head { margin-bottom: 48px; }
.sec__lead { font-size: 19px; max-width: 40em; }

/* CTA bands */
.cta-band { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cta-band--night { background: var(--night-2); border-color: rgba(244,247,239,.12); color: var(--led); }
.cta-band__row { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 26px; flex-wrap: wrap; }
.cta-band__row p { margin: 0; font-family: var(--serif); font-size: 23px; color: inherit; }
.cta-band:not(.cta-band--night) .cta-band__row p { color: var(--ink); }

/* reveal : translation seule, jamais d'opacité */
.rv { transform: translateY(18px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { transform: none; }

/* ---------- LINEE : tavole ---------- */
.tavole { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--r-card); }
.tavola {
  position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--rule);
  cursor: pointer; transition: background .2s;
}
.tavola:last-child { border-right: 0; }
.tavola:hover { background: #fffdf7; }
.tavola img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-bottom: 1px solid var(--rule); }
.tavola:first-child img { border-top-left-radius: var(--r-card); }
.tavola:last-child img { border-top-right-radius: var(--r-card); }
.tavola__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.tavola__ref { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.tavola h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.15; margin-bottom: 10px; }
.tavola p { font-size: 16px; }
.tavola__price { font-family: var(--mono); font-size: 13px; color: var(--green); margin-top: auto; }
.tavola__link { font-weight: 600; font-size: 15px; color: var(--green); text-decoration: none; }
.tavola__link::after { content: ""; position: absolute; inset: 0; }
.tavola__link span { display: inline-block; transition: transform .2s; }
.tavola:hover .tavola__link span { transform: translateX(4px); }

/* ---------- PROGETTO ---------- */
.progetto { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.passi { list-style: none; margin: 32px 0 0; padding: 0; }
.passi li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(244,247,239,.16); }
.passi__n { font-family: var(--serif); font-size: 30px; line-height: 1; color: #a9d8a0; }
.passi h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.passi p { margin: 0; font-size: 16px; }
.progetto__cta, .perchi__cta { margin-top: 32px; }
.pianta { margin: 0; }
.pianta__svg { width: 100%; height: auto; display: block; }
.lamp__glow { opacity: 0; transition: opacity .6s ease; }
.lamp__dot { fill: #3b5a46; stroke: #cfe3d2; stroke-width: 1.5; transition: fill .4s; }
.lamp.on .lamp__glow { opacity: 1; }
.lamp.on .lamp__dot { fill: #f6ffe0; }
.isolux rect { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; }
.pianta__read { margin-top: 14px; font-family: var(--mono); font-size: 13.5px; color: var(--led-dim); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.pianta__read strong { color: var(--led); font-weight: 500; font-size: 16px; }
.pianta__note { opacity: .7; }

/* ---------- PERCHÉ ---------- */
.perche { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.perche__media img { border-radius: var(--r-img); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border: 1px solid var(--rule); }
.argomenti { margin: 28px 0 0; }
.argomenti > div { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.argomenti dt { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1.2; }
.argomenti dd { margin: 0; font-size: 16.5px; }

/* ---------- PER CHI ---------- */
.segmenti { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.segmento {
  display: grid; grid-template-columns: 56px 300px 1fr 40px; gap: 20px; align-items: baseline;
  padding: 26px 8px; border-bottom: 1px solid var(--rule); text-decoration: none; cursor: pointer;
  transition: background .2s;
}
.segmento:hover { background: #f2eee2; }
.segmento__n { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.segmento__t { font-family: var(--serif); font-size: 28px; color: var(--ink); line-height: 1.15; }
.segmento__d { font-size: 16.5px; }
.segmento__go { font-size: 22px; color: var(--green); transition: transform .2s; justify-self: end; }
.segmento:hover .segmento__go { transform: translateX(4px); }

/* ---------- SPORT : planche-contact ---------- */
.provini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.provino { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-img); background: var(--night-2); }
.provino img { width: 100%; height: 100%; object-fit: cover; }
.provino span:not(.provino__big) {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  font-family: var(--mono); font-size: 14px; color: var(--led);
  background: linear-gradient(0deg, rgba(10,25,16,.85), rgba(10,25,16,0));
}
.provino--text { border: 1px solid rgba(244,247,239,.2); background: transparent; display: flex; align-items: center; justify-content: center; }
.provino__big { font-family: var(--serif); font-size: 72px; color: #a9d8a0; line-height: 1; }

/* ---------- CONSEGNA ---------- */
.consegna { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.consegna__photo { margin: 28px 0 0; }
.consegna__photo img { border-radius: var(--r-img); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border: 1px solid var(--rule); }
.mappa { margin: 0; }
.mappa svg { width: 100%; height: auto; display: block; }
.mappa__lbl text { font-family: var(--mono); font-size: 10.5px; fill: var(--ink); }
.mappa__home-halo { transform-origin: 49px 97px; animation: halo 2.6s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.6); fill-opacity: .06; } }

/* ---------- CHI SIAMO ---------- */
.chi { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.chi__media { margin: 0; }
.chi__media img { border-radius: var(--r-img); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--rule); }
.chi__text p { font-size: 17.5px; }
.firma { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink); margin-top: 26px; }
.firma span { display: block; font-family: var(--mono); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- CONTATTI ---------- */
.contatti { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.contatti__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.scheda { margin: 0; border-top: 1px solid rgba(244,247,239,.22); }
.scheda > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(244,247,239,.12); }
.scheda dt { font-family: var(--mono); font-size: 13px; color: var(--led-dim); padding-top: 3px; }
.scheda dd { margin: 0; color: var(--led); }
.scheda a { color: var(--led); text-underline-offset: 4px; display: inline-block; padding: 4px 0; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #c9cfc6; padding: 56px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer__name { font-family: var(--serif); font-size: 26px; color: var(--led); margin-bottom: 8px; }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer__links a { color: var(--led); text-decoration: none; padding: 10px 0; }
.footer__links a:hover { text-decoration: underline; }
.footer__credit { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(244,247,239,.14); font-size: 14px; }
.footer__credit a { color: var(--led); }

/* =========================================================
   Paliers : >1100 desktop · 721–1100 intermédiaire · ≤720 mobile
   ========================================================= */
@media (max-width: 1240px) {
  .tavole { grid-template-columns: repeat(2, 1fr); }
  .tavola:nth-child(2) { border-right: 0; }
  .tavola:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .tavola:first-child img { border-top-left-radius: var(--r-card); }
  .tavola:nth-child(2) img { border-top-right-radius: var(--r-card); }
  .tavola:last-child img { border-top-right-radius: 0; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .burger { display: inline-flex; }
  .hero h1 { font-size: 54px; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .progetto, .perche, .consegna, .chi, .contatti { gap: 40px; }
  .segmento { grid-template-columns: 40px 220px 1fr 32px; }
  .provini { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .progetto, .perche, .consegna, .chi, .contatti { grid-template-columns: 1fr; }
  .perche__media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header__row { gap: 6px; }
  .logo__img { height: clamp(20px, 5.4vw, 30px); }
  .header__actions { gap: 6px; }
  .btn-call { padding: 8px 8px; font-size: 14px; border: 1px solid var(--rule); }
  .btn-call__long { display: none; }
  .btn-call__short { display: inline; }
  .btn--head { padding: 8px 10px; font-size: 14px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }

  .hero__bg {
    inset: -40px -40px auto -40px;
    height: 600px;
    background-position: 74% 62%;
    background-size: cover;
    filter: blur(1.5px);
    transform: scale(1.04);
  }
  .hero__veil {
    background: linear-gradient(180deg,
      rgba(251,248,240,.30) 0px,
      rgba(251,248,240,.62) 240px,
      rgba(251,248,240,.86) 420px,
      rgba(251,248,240,1) 580px);
  }
  .hero__grid { padding-block: 22px 40px; gap: 28px; }
  .hero__text { padding-top: 0; }
  .hero .cartouche { font-size: 11.5px; margin-bottom: 12px; }
  .hero h1 { font-size: 34px; line-height: 1.06; margin-bottom: 14px; }
  .hero__sub { font-size: 16.5px; margin-bottom: 0; }
  .hide-sm { display: none; }
  .hero__ctas { margin-top: 18px; gap: 4px 16px; }
  .hero__ctas .btn--lg { width: 100%; font-size: 16px; padding: 14px 18px; }
  .hero__fud { font-size: 12px; margin-top: 10px; }

  .sec { padding-block: 64px; }
  .sec h2 { font-size: 32px; }
  .sec__head { margin-bottom: 32px; }
  .sec__lead { font-size: 17px; }
  .cta-band__row p { font-size: 20px; }
  .cta-band__row .btn { width: 100%; }

  .tavole { grid-template-columns: 1fr; }
  .tavola { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tavola:last-child { border-bottom: 0; }
  .tavola img, .tavola:nth-child(2) img { border-radius: 0; }
  .tavola:first-child img { border-radius: var(--r-card) var(--r-card) 0 0; }

  .argomenti > div { grid-template-columns: 1fr; gap: 4px; }
  .segmento { grid-template-columns: 28px 1fr 24px; gap: 4px 12px; padding: 20px 4px; }
  .segmento__t { font-size: 23px; grid-column: 2; }
  .segmento__d { grid-column: 2; grid-row: 2; font-size: 15.5px; }
  .segmento__go { grid-column: 3; grid-row: 1; }
  .provini { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .provino span:not(.provino__big) { font-size: 12.5px; padding: 22px 10px 10px; }
  .provino__big { font-size: 48px; }
  .scheda > div { grid-template-columns: 1fr; gap: 2px; }
  .contatti__ctas .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .logo__img { height: 17px; }
  .header__row { gap: 4px; }
  .btn-call { padding: 8px 4px; font-size: 13px; gap: 3px; }
  .btn--head { padding: 8px 6px; font-size: 13px; }
  .header__actions { gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { transform: none; transition: none; }
  .mappa__home-halo { animation: none; }
  .lamp__glow, .lamp__dot { transition: none; }
}
