/* ==========================================================================
   Officina Bellotti - SITO DIMOSTRATIVO realizzato da Vela Studio
   Officina finta: nomi, dati e foto sono inventati (foto generate con IA).
   Look: antracite scuro, arancione sicurezza, titoli stretti e pesanti.
   Tema scuro su tutta la pagina. Forme: pulsanti a pillola, schede 16px.
   ========================================================================== */

/* Font salvati nella cartella font/ (vedi font/LEGGIMI.txt): la pagina non chiama Google. */
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("font/Barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("font/Barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("font/Barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("font/BarlowCondensed-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("font/BarlowCondensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("font/BarlowCondensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --fondo: #1B1D23;
  --pannello: #262932;
  --testo: #F2F2F0;
  --testo-2: #B5B8C2;
  --arancio: #FF7A1A;
  --arancio-scuro: #E5660A;
  --linea: rgba(255, 255, 255, 0.12);

  --font-titoli: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-testo: "Barlow", "Segoe UI", system-ui, sans-serif;

  --r-l: 16px;
  --col: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0; background: var(--fondo); color: var(--testo);
  font: 400 1.0625rem/1.6 var(--font-testo); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; } /* il contenitore delle foto (versioni per telefono e per computer) non deve cambiare il layout */

:focus-visible { outline: 3px solid var(--arancio); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-titoli); font-weight: 700; line-height: 1; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.7rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--col)); margin-inline: auto; }
.sezione { padding-block: clamp(56px, 8vw, 104px); }
.intro { margin-top: 14px; max-width: 54ch; color: var(--testo-2); }

/* ---------- Striscia "sito dimostrativo" (colori di Vela Studio) ---------- */
.demo-banner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px;
  padding: 10px var(--gutter); background: #16131E; color: #fff;
  border-bottom: 1px solid var(--linea);
  font-size: 0.875rem; line-height: 1.4; text-align: center;
}
.demo-banner a { color: #C4B5FD; font-weight: 600; text-underline-offset: 3px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.7rem; border: 2px solid transparent; border-radius: 999px;
  font: 600 1.05rem/1 var(--font-testo); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--piccolo { min-height: 42px; padding: 0 1.2rem; font-size: 0.95rem; }
.btn--arancio { background: var(--arancio); color: var(--fondo); }
.btn--arancio:hover { background: var(--arancio-scuro); }
.btn--linea { border-color: var(--testo); color: var(--testo); }
.btn--linea:hover { background: var(--testo); color: var(--fondo); }
.btn--scuro { background: var(--fondo); color: var(--testo); }
.btn--scuro:hover { background: #000; }

/* ---------- Barra in alto ---------- */
.testata {
  position: sticky; top: 0; z-index: 40; background: rgba(27, 29, 35, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea);
}
.testata__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { margin-right: auto; font: 700 1.7rem var(--font-titoli); letter-spacing: 0.01em; text-decoration: none; }
.nav { display: flex; gap: 26px; }
.nav a { padding: 0.4rem 0.1rem; font-weight: 500; text-decoration: none; color: var(--testo-2); }
.nav a:hover { color: var(--testo); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Hero: foto a tutta larghezza con un velo scuro a sinistra ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 560px; padding-block: 56px; overflow: hidden; isolation: isolate; }
.hero__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { /* velo: rende il testo leggibile sopra la foto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(27, 29, 35, 0.96) 0%, rgba(27, 29, 35, 0.82) 45%, rgba(27, 29, 35, 0.25) 100%);
}
.hero__contenuto { position: relative; }
.stato {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding: 0.4rem 0.95rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12);
  font-size: 0.95rem; font-weight: 600;
}
.stato::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--testo-2); }
.stato[data-stato="aperto"]::before { background: #5EDB86; }
.hero h1 { max-width: 16ch; }
.lead { margin-top: 20px; max-width: 38ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #E4E5EA; }
.azioni { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Servizi: sei riquadri di misure diverse ---------- */
.griglia { margin-top: 44px; display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.servizio {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 250px; padding: 26px; overflow: hidden; isolation: isolate;
  background: var(--pannello); border-radius: var(--r-l);
}
.servizio p { color: var(--testo-2); max-width: 36ch; }
.servizio .prezzo { order: -1; margin-bottom: auto; font: 700 1.6rem var(--font-titoli); color: var(--arancio); } /* il prezzo sta in alto, il testo in basso */
.servizio--a { grid-column: span 5; min-height: 320px; }
.servizio--b { grid-column: span 4; }
.servizio--c { grid-column: span 3; }
.servizio--d { grid-column: span 3; }
.servizio--e { grid-column: span 4; }
.servizio--f { grid-column: span 5; min-height: 320px; }
.servizio--foto img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.servizio--foto::before { /* velo dal basso, per leggere il testo sopra la foto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(27, 29, 35, 0.94) 0%, rgba(27, 29, 35, 0.6) 55%, rgba(27, 29, 35, 0.1) 100%);
}
.servizio--foto p { color: #E4E5EA; }
.servizio--foto .prezzo { align-self: flex-start; padding: 0.1rem 0.8rem; background: var(--fondo); border-radius: 999px; } /* sfondo scuro: il prezzo si legge anche sopra la foto */

/* ---------- Come funziona ---------- */
.passi { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.passo { padding-top: 22px; border-top: 3px solid var(--arancio); }
.passo__n { display: block; margin-bottom: 14px; font: 700 3.6rem/1 var(--font-titoli); color: var(--arancio); }
.passo h3 { margin-bottom: 8px; }
.passo p { color: var(--testo-2); }

/* ---------- Contatti ---------- */
.contatti { padding-bottom: clamp(56px, 8vw, 104px); }
.contatti__griglia { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; }
.pannello { padding: clamp(24px, 4vw, 44px); background: var(--pannello); border-radius: var(--r-l); }
.pannello--chiama { background: var(--arancio); color: var(--fondo); }
.pannello.pannello--chiama p { margin-top: 14px; margin-bottom: 0; color: #3A2412; font-weight: 500; } /* più specifico di ".pannello p", così il testo scuro vince */
.telefono {
  display: inline-block; margin: 22px 0 24px; font: 700 clamp(2.4rem, 6vw, 3.8rem)/1 var(--font-titoli);
  letter-spacing: 0.01em; text-decoration: none;
}
.pannello--chiama :focus-visible { outline-color: var(--fondo); }
.pannello h3 { margin-bottom: 10px; }
.pannello p { margin-bottom: 14px; color: var(--testo-2); }
.pannello strong { color: var(--testo); }
.pannello > div + div { margin-top: 28px; }

/* ---------- Piè di pagina ---------- */
.piede { padding-block: 36px; border-top: 1px solid var(--linea); }
.piede__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.piede p { margin-right: auto; font-size: 0.95rem; color: var(--testo-2); }
.piede a { font-weight: 600; }

/* ---------- Barra fissa per chiamare (solo telefono) ---------- */
.barra-chiama { display: none; }

/* ---------- Schermi piccoli: tutto in una colonna ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(0deg, rgba(27, 29, 35, 0.95) 0%, rgba(27, 29, 35, 0.8) 100%); }
  .griglia { grid-template-columns: minmax(0, 1fr); }
  .servizio--a, .servizio--b, .servizio--c, .servizio--d, .servizio--e, .servizio--f { grid-column: auto; min-height: 220px; }
  .passi { grid-template-columns: minmax(0, 1fr); }
  .contatti__griglia { grid-template-columns: minmax(0, 1fr); }

  .barra-chiama {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 50;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(27, 29, 35, 0.96); border-top: 1px solid var(--linea);
  }
  .barra-chiama .btn { width: 100%; }
  body { padding-bottom: 76px; }
  .testata .btn { display: none; } /* su telefono basta la barra fissa in basso */
}
