/* ==========================================================
   Demo "foto in home" — regole in più rispetto a style.css
   style.css arriva tale e quale dalla versione a pagina unica
   (strumenti/genera.py lo ricopia); qui solo la home con la foto.
   ========================================================== */

/* testo solo per i lettori di schermo (il titolo della pagina: il nome lo mostra la foto) */
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- home: la vetrina come sfondo ----------
   Stesse misure che la foto aveva nei contatti. Foto 2000×1108, larga quanto lo schermo e alta in
   proporzione, quindi le posizioni sono in vw: l'insegna sta all'1,8–8,4% della larghezza, le tende
   finiscono al 16,2%.
   Telefono: foto al 116% (resta intera "OSTIA GONDOLE"), alzata dell'1,5%; il testo parte a 30vw.
   Computer: foto al 100%, alzata dell'1%; il testo parte a 17vw.
   In alto la foto resta libera; il testo sta sotto le tende, dove la foto scurisce in un nero caldo. */
.hero--foto {
  --scuro: 15, 9, 10;
  position: relative; overflow: hidden; isolation: isolate;
  background: rgb(var(--scuro)); color: #fff;
}
.hero__foto {
  position: absolute; z-index: -2; top: -1.5vw; left: 50%;
  display: block; width: 116%; max-width: none; height: auto;
  transform: translateX(-50%);
}
.hero--foto::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(to bottom, rgba(var(--scuro), 0) 0, rgba(var(--scuro), 0) 21vw,
    rgba(var(--scuro), .55) 33vw, rgba(var(--scuro), .86) 46vw, rgb(var(--scuro)) 60vw);
}
/* segnaposto alto quanto l'insegna nella foto: quando esce, nell'header compare il nome */
.hero__marca { position: absolute; top: 0; left: 0; width: 1px; height: 8.2vw; pointer-events: none; }
.hero--foto .hero__in { padding-top: 30vw; }
@media (min-width: 900px) {
  .hero__foto { top: -1vw; width: 100%; }
  .hero--foto::before {
    background: linear-gradient(to bottom, rgba(var(--scuro), 0) 0, rgba(var(--scuro), 0) 15.5vw,
      rgba(var(--scuro), .5) 23vw, rgba(var(--scuro), .82) 36vw, rgb(var(--scuro)) 52vw);
  }
  .hero__marca { height: 7.4vw; }
  .hero--foto .hero__in { padding-top: 17vw; }
}

/* testi in bianco sulla foto, con l'ombra dei titoli dei contatti */
.hero--foto .hero__main { text-shadow: 0 2px 14px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .6); }
.hero--foto .hero__where { color: rgba(255, 255, 255, .85); }
.hero--foto .hero__where .ic { color: #fff; }
.hero--foto .hero__claim { color: #fff; }
.hero--foto .hero__open { color: rgba(255, 255, 255, .92); }
.hero--foto .hero__lead { color: rgba(255, 255, 255, .88); }
.hero--foto .status, .hero--foto .btn { text-shadow: none; }
.hero--foto .status { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .2); color: #fff; }
.hero--foto .status.is-open .status__dot { background: #4fe39a; box-shadow: 0 0 0 4px rgba(79, 227, 154, .25); }
.hero--foto .status.is-closed .status__dot { background: #f2b8b8; }
.hero--foto .btn--line { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.hero--foto .btn--line:hover { background: rgba(255, 255, 255, .18); }
.hero--foto :focus-visible { outline-color: #fff; }

/* riquadro orari/indirizzo/telefono (solo computer): scuro trasparente come quelli dei contatti */
@media (min-width: 1000px) {
  .hero--foto .hero__card { background: rgba(var(--scuro), .66); border-color: rgba(255, 255, 255, .2); box-shadow: none; }
  .hero--foto .hero__card > div { border-top-color: rgba(255, 255, 255, .18); }
  .hero--foto .hero__card dt { color: rgba(255, 255, 255, .75); }
  .hero--foto .hero__card dt .ic, .hero--foto .hero__card dd { color: #fff; }
}
