/* =========================================================
   HOME 3 — stile PrimoWeb (nero, verde, oro come il sito attuale)
   Si aggiunge a style.css. Video in apertura + "Due strade".
   ========================================================= */

/* ---------- HERO VIDEO ---------- */
.vh { position: relative; height: calc(100svh - 72px); min-height: 520px; max-height: 1000px; background: #000; overflow: hidden; }
.vh__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vh::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none; }
.vh__barra { position: absolute; z-index: 2; left: 50%; bottom: clamp(1.4rem, 5vh, 3rem); transform: translateX(-50%); display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100% - 2rem); }
.vh__audio { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.3rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .35); color: #fff; font-family: var(--font-titoli); font-weight: 600; font-size: .9rem; cursor: pointer; backdrop-filter: blur(6px); }
.vh__audio svg { width: 1.1rem; height: 1.1rem; }
.vh__audio:hover { border-color: #fff; }
.vh__audio:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
.vh__giu { position: absolute; z-index: 2; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1.4rem, 5vh, 3rem); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; }
.vh__giu span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: vh-giu 1.8s ease-in-out infinite; }
@keyframes vh-giu { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 700px) {
  .vh { height: auto; min-height: 0; aspect-ratio: 16 / 9; max-height: none; }
  .vh__barra { position: static; transform: none; width: auto; max-width: none; padding: 1rem; background: #000; }
  .vh::after, .vh__giu { display: none; }
  .vh { overflow: visible; }
  .vh__video { position: relative; height: auto; aspect-ratio: 16 / 9; }
}

/* ---------- DUE STRADE ---------- */
.strade { position: relative; background: #000; color: #fff; text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 1.25rem clamp(2rem, 4vw, 3rem); overflow: hidden; }
.strade::before { content: ""; position: absolute; left: 50%; top: 40%; width: 70vmax; height: 40vmax; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(31, 122, 44, .45), transparent); pointer-events: none; }
.strade > * { position: relative; }
.strade__k { margin: 0; font-family: var(--font-titoli); font-weight: 600; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--oro); }
.strade h2 { margin: .8rem 0 0; font-family: var(--font-titoli); font-weight: 800; letter-spacing: -.045em; line-height: .98; font-size: clamp(2.4rem, 6.6vw, 5.4rem); color: #fff; }
.strade h2 span { color: #4fc45e; }
.strade__lead { margin: 1.2rem auto 0; max-width: 44ch; color: rgba(255, 255, 255, .72); font-size: 1.1rem; line-height: 1.6; }

/* la porta nei colori del sito: nero con luce verde, accenti oro */
.porta { background: #000; }
.porta__lato--build .porta__media::after { background: linear-gradient(90deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .4) 60%, rgba(0, 0, 0, .2)); }
.porta__lato--grow .porta__media::after { background: linear-gradient(270deg, rgba(6, 23, 8, .9), rgba(16, 74, 20, .45) 60%, rgba(0, 0, 0, .25)); }
.porta__kicker { color: var(--oro); }
.porta__lato:hover .porta__entra { background: var(--oro); border-color: var(--oro); color: #212121; }
.porta__centro { background: var(--oro); color: #212121; box-shadow: 0 0 0 10px rgba(212, 160, 23, .18); }
.porta__centro::after { border-color: var(--oro); }
.mondo__btn--altro { background: var(--oro); border-color: var(--oro); color: #212121; }
.mondo--grow .mondo__cta { background: var(--oro); color: #212121; }

/* ---------- FINALE ---------- */
.fine3 { position: relative; overflow: hidden; background: #000; color: #fff; text-align: center; padding: clamp(4.5rem, 11vw, 8rem) 1.25rem; }
.fine3::before { content: ""; position: absolute; left: 50%; bottom: -20%; width: 80vmax; height: 50vmax; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(31, 122, 44, .5), transparent); pointer-events: none; }
.fine3 > * { position: relative; }
.fine3 h2 { margin: 0 auto; max-width: 11ch; font-family: var(--font-titoli); font-weight: 800; letter-spacing: -.05em; line-height: .92; font-size: clamp(2.6rem, 8vw, 6.6rem); color: #fff; text-transform: uppercase; }
.fine3 h2 span { color: var(--oro); }
.fine3 p { color: rgba(255, 255, 255, .72); font-size: 1.1rem; margin: 1.4rem 0 2rem; }

/* ---------- FOOTER: slogan gigante al centro, niente logo ---------- */
.footer__motto { margin: 0; padding: clamp(2.5rem, 7vw, 5rem) 1rem clamp(1.5rem, 4vw, 3rem); text-align: center; font-family: var(--font-titoli); font-weight: 800; letter-spacing: -.055em; line-height: .9; font-size: clamp(2.6rem, 9.5vw, 9rem); color: #fff; white-space: nowrap; }
.footer__motto span { color: var(--oro); }
@media (max-width: 600px) { .footer__motto { white-space: normal; } }

@media (prefers-reduced-motion: reduce) { .vh__giu span { animation: none; } }
@media (max-width: 700px) { .vh { aspect-ratio: auto; height: auto; } }

/* ---------- barra in alto trasparente sopra il video, verde quando scendi ---------- */
body.home3 .header { position: fixed; left: 0; right: 0; top: 0; background-color: transparent; box-shadow: none; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease; }
body.home3 .header::before { content: ""; position: absolute; inset: 0 0 -40px 0; background: linear-gradient(rgba(0, 0, 0, .55), transparent); pointer-events: none; transition: opacity .35s ease; z-index: -1; }
body.home3 .header.is-scrolled { background-color: rgba(14, 61, 20, .9); box-shadow: var(--shadow-soft); border-bottom-color: rgba(255, 255, 255, .06); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
body.home3 .header.is-scrolled::before { opacity: 0; }
body.home3 .vh { height: 100svh; max-height: none; }
@media (max-width: 700px) { body.home3 .vh { height: auto; } body.home3 .vh__video { margin-top: 0; } }
