/* style.css — stile condiviso da tutte le pagine. Tema cantiere: nero, bianco, giallo. */

:root {
  --bg: #000000;
  --panel: #121212;
  --panel2: #1B1B1B;
  --ink: #F5F5F5;
  --mu: #A8A8A8;
  --acc: #F5C400;
  --acc-hover: #FFD83A;
  --line: rgba(255, 255, 255, 0.12);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 800; line-height: 1; letter-spacing: 0; }
h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 22px; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 18px; }
h3 { font-size: 1.6rem; margin-bottom: 8px; }
.lead { color: var(--mu); font-size: 1.15rem; max-width: 56ch; }
section { padding: 88px 0; }
@media (max-width: 760px) { section { padding: 60px 0; } }

/* Strisce gialle e nere */
.strisce { height: 12px; background: repeating-linear-gradient(-45deg, var(--acc) 0 18px, #000 18px 36px); }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 3px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--acc); cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.btn:active { transform: scale(.98); }
.btn.pieno { background: var(--acc); color: #000; }
.btn.pieno:hover { background: var(--acc-hover); border-color: var(--acc-hover); }
.btn.vuoto { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.vuoto:hover { border-color: var(--ink); }
.azioni { display: flex; gap: 12px; flex-wrap: wrap; }

/* Barra in alto */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0,0,0,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 62px; width: auto; }
.brand span { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.5rem; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { text-decoration: none; color: var(--mu); font-weight: 600; font-size: 1rem; }
.menu a:hover, .menu a.attivo { color: var(--ink); }
.menu .btn { padding: 10px 18px; font-size: 1rem; }
.hamburger { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 3px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 760px) {
  .nav .wrap { height: 76px; }
  .brand img { height: 52px; }
  .hamburger { display: block; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    background: #000; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px;
  }
  .menu.aperto { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .menu .btn { margin-top: 12px; border-bottom: 2px solid var(--acc); justify-content: center; }
}

/* Foto con cornice gialla spostata */
.cornice { position: relative; }
.cornice::before { content: ""; position: absolute; inset: 0; border: 3px solid var(--acc); transform: translate(14px, 14px); pointer-events: none; z-index: 0; }
.cornice img, .cornice.noimg { position: relative; z-index: 1; }

/* Home: apertura */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero figure { aspect-ratio: 5 / 4; background: var(--panel); }
.hero figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero figure { aspect-ratio: 4 / 3; }
}

/* Scelta servizio: due riquadri grandi */
.scelta { padding: 72px 0; }
.scelta .griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.tile {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
  text-decoration: none; background: var(--panel); border: 1px solid var(--line);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 100%); }
.tile > * { position: relative; z-index: 1; }
.tile h3 { font-size: clamp(2rem, 4vw, 3.4rem); text-transform: uppercase; line-height: .95; margin-bottom: 10px; }
.tile p { color: var(--mu); max-width: 40ch; margin-bottom: 16px; }
.tile .vai { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; color: var(--acc); }
.tile .vai::after { content: ""; display: block; width: 44px; height: 3px; background: var(--acc); margin-top: 6px; transition: width .3s; }
.tile:hover img { transform: scale(1.06); opacity: .7; }
.tile:hover .vai::after { width: 90px; }
@media (max-width: 760px) {
  .scelta { padding: 56px 0; }
  .scelta .griglia { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 11; padding: 24px; }
}

/* Nastro scorrevole */
.nastro { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; background: var(--panel); }
.nastro .scorre { display: flex; width: max-content; animation: scorri 40s linear infinite; }
.nastro span {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.5rem; text-transform: uppercase; white-space: nowrap; color: var(--ink);
}
.nastro span::after { content: ""; width: 12px; height: 12px; background: var(--acc); transform: rotate(45deg); }
@keyframes scorri { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nastro .scorre { animation: none; } }

/* Punti di forza */
.punti { background: var(--bg); }
.punti .griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.punti .griglia > div { border-top: 3px solid var(--acc); padding-top: 20px; }
.punti p { color: var(--mu); }
@media (max-width: 760px) { .punti .griglia { grid-template-columns: 1fr; gap: 28px; } }

/* Chi siamo */
.chi { background: var(--panel); }
.chi .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.chi figure { aspect-ratio: 1 / 1; background: var(--panel2); }
.chi figure img { width: 100%; height: 100%; object-fit: cover; }
.chi p { color: var(--mu); font-size: 1.08rem; max-width: 58ch; margin-bottom: 16px; }
.chi .azioni { margin-top: 10px; }
@media (max-width: 900px) {
  .chi .wrap { grid-template-columns: 1fr; gap: 40px; }
  .chi figure { aspect-ratio: 16 / 10; }
}
.valori { background: var(--bg); }
.valori .griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.valori .griglia > div { border-top: 3px solid var(--acc); padding-top: 20px; }
.valori p { color: var(--mu); }
@media (max-width: 760px) { .valori .griglia { grid-template-columns: 1fr; gap: 28px; } }

/* Pagina Servizi: due blocchi grandi alternati */
.dettagli { padding: 0 0 40px; }
.intro { padding: 56px 0 40px; }
@media (max-width: 760px) { .intro { padding: 36px 0 28px; } }
.dettaglio { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.dettaglio:nth-of-type(even) figure { order: 2; }
.dettaglio figure { aspect-ratio: 4 / 3; background: var(--panel); }
.dettaglio figure img { width: 100%; height: 100%; object-fit: cover; }
.dettaglio h2 { text-transform: uppercase; }
.dettaglio p { color: var(--mu); margin-bottom: 14px; max-width: 56ch; }
.dettaglio .azioni { margin-top: 10px; }
@media (max-width: 900px) {
  .dettaglio { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .dettaglio:nth-of-type(even) figure { order: 0; }
}

/* Invito finale: banda gialla */
.cta { background: var(--acc); color: #000; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin-bottom: 8px; }
.cta p { max-width: 52ch; font-weight: 500; }
.cta .btn.pieno { background: #000; color: #fff; border-color: #000; }
.cta .btn.pieno:hover { background: #222; border-color: #222; }

/* Contatti */
.contatti .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.dati { list-style: none; margin: 24px 0 32px; display: grid; gap: 12px; }
.dati li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; color: var(--mu); }
.dati li b { color: var(--ink); font-weight: 700; }
.dati a { color: var(--acc); text-decoration: none; }
.dati a:hover { text-decoration: underline; }
form { display: grid; gap: 14px; }
form label { display: grid; gap: 6px; font-weight: 600; }
form input, form textarea {
  width: 100%; padding: 14px; border-radius: 3px; font: inherit; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
}
form input:focus, form textarea:focus { border-color: var(--acc); outline: none; }
form textarea { min-height: 130px; resize: vertical; }
form .nascosto { display: none; }
.mappa iframe { width: 100%; min-height: 380px; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.mappa iframe[src=""] { display: none; }
@media (max-width: 900px) { .contatti .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* Footer */
footer { padding: 36px 0 100px; color: var(--mu); font-size: .95rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer b { color: var(--ink); }
footer a { color: var(--mu); }
@media (min-width: 761px) { footer { padding-bottom: 40px; } }

/* WhatsApp fisso su telefono */
.wa-fisso {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
  display: none; justify-content: center; align-items: center;
  padding: 16px; border-radius: 3px; background: var(--acc); color: #000;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.2rem; text-transform: uppercase;
  text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
@media (max-width: 760px) { .wa-fisso { display: flex; } }

/* Foto mancante */
.noimg { background: linear-gradient(135deg, var(--panel) 0%, var(--panel2) 100%) !important; }

/* Animazioni allo scroll: gli elementi con classe "reveal" compaiono quando entrano nello schermo */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Catalogo materiale */
.catalogo { padding-top: 0; }
.filtri { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 32px; }
.filtro {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 3px; background: none; color: var(--mu);
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.05rem; text-transform: uppercase; cursor: pointer;
  transition: border-color .18s, color .18s;
}
.filtro.attivo, .filtro:hover { border-color: var(--acc); color: var(--ink); }
.prodotti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prodotto {
  text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  cursor: pointer; padding: 0; color: inherit; font: inherit; display: block; width: 100%;
  transition: transform .25s, border-color .25s; animation: appari .5s both;
}
.prodotto:hover { transform: translateY(-4px); border-color: var(--acc); }
.prodotto figure { aspect-ratio: 4 / 3; background: var(--panel2); overflow: hidden; }
.prodotto figure img { width: 100%; height: 100%; object-fit: cover; }
.prodotto .info { padding: 16px 18px 18px; }
.prodotto h3 { font-size: 1.4rem; margin-bottom: 4px; }
.prodotto .cat { color: var(--mu); font-size: .95rem; }
.stato { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 2px; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: .95rem; text-transform: uppercase; }
.stato.si { background: var(--acc); color: #000; }
.stato.no { background: #333; color: #bbb; }
.stato.arrivo { border: 1px solid var(--acc); color: var(--acc); }
.quant { display: block; color: var(--mu); margin-top: 8px; font-size: .95rem; }
.vuoto { color: var(--mu); padding: 40px 0; }
@keyframes appari { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .prodotto { animation: none; } }
@media (max-width: 900px) { .prodotti { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prodotti { grid-template-columns: 1fr; } }

/* Scheda prodotto (finestra) */
.scheda { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.scheda[hidden] { display: none; }
.scheda-box { background: var(--panel); color: var(--ink); width: min(940px, 100%); max-height: 90vh; overflow: auto; border-radius: 4px; -webkit-overflow-scrolling: touch; animation: appari .3s both; }
.scheda .griglia { display: grid; grid-template-columns: 1fr 1fr; }
.scheda figure { aspect-ratio: 1 / 1; background: var(--panel2); overflow: hidden; }
.scheda figure img { width: 100%; height: 100%; object-fit: cover; }
.scheda .testo { padding: 36px; position: relative; }
.scheda h2 { text-transform: uppercase; margin-bottom: 6px; }
.scheda .cat { color: var(--mu); margin-bottom: 16px; }
.scheda .desc { margin: 16px 0; }
.scheda .desc p { color: var(--mu); margin: 0 0 10px; }
.scheda .desc ul { color: var(--mu); margin: 6px 0 12px; padding-left: 0; list-style: none; }
.scheda .desc li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.scheda .desc li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--acc); transform: rotate(45deg); }
.scheda .azioni { margin-top: 24px; display: flex; flex-wrap: nowrap; gap: 12px; align-items: stretch; }
.scheda .azioni .btn { flex: 1 1 0; height: 58px; min-height: 58px; max-height: 58px; padding: 0 16px; line-height: 1; white-space: nowrap; }
.scheda .chiudi { position: absolute; top: 14px; right: 14px; background: none; border: 1px solid var(--line); color: var(--ink); width: 40px; height: 40px; border-radius: 3px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.scheda .chiudi:hover { border-color: var(--acc); }
@media (max-width: 760px) {
  .scheda { padding: 12px; align-items: flex-start; padding-top: 8vh; }
  .scheda-box { max-height: 86vh; }
  .scheda .griglia { grid-template-columns: 1fr; }
  .scheda figure { aspect-ratio: 16 / 10; }
  .scheda .testo { padding: 22px; }
}

/* Fondatore e team */
.fondatore { background: var(--panel); }
.fondatore .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.fondatore figure { aspect-ratio: 4 / 5; background: var(--panel2); }
.fondatore figure img { width: 100%; height: 100%; object-fit: cover; }
.fondatore .ruolo { color: var(--acc); font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 8px; }
.fondatore p { color: var(--mu); font-size: 1.08rem; max-width: 56ch; }
@media (max-width: 900px) {
  .fondatore .wrap { grid-template-columns: 1fr; gap: 32px; }
  .fondatore figure { aspect-ratio: 4 / 3; }
}
.team { padding-top: 0; }
.team figure { aspect-ratio: 21 / 9; background: var(--panel); margin-top: 28px; }
.team figure img { width: 100%; height: 100%; object-fit: cover; }
.team p { color: var(--mu); max-width: 56ch; }
@media (max-width: 760px) { .team figure { aspect-ratio: 4 / 3; } }
