/* Frame It Contest — static site (Netlify-ready)
   Style direction: high contrast, editorial, cinema-inspired.

   v2 changes:
   - Banner fully visible (contain) in the first viewport.
   - Banner fixed behind, then covered by the page while scrolling.
   - Better readability: glass panel + stronger scrims.
   - Bigger logo.
   - Topbar becomes more opaque after scrolling.
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg: #0b0b0b;
  --bg-2: #101010;
  --text: #f3f1eb;
  --muted: rgba(243, 241, 235, .72);
  --line: rgba(243, 241, 235, .14);
  --accent: #d3483a;
  --accent-2: #f0d7aa;
  --shadow: 0 14px 40px rgba(0,0,0,.55);

  --wrap: 1120px;
  --radius: 18px;

  --sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --serif: Fraunces, ui-serif, Georgia, "Times New Roman", Times, serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html, body{ max-width: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}

body{
  margin:0;
  background: var(--bg);
  color:var(--text);
  font-family:var(--sans);
  line-height:1.55;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
a.link{ text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.link:hover{ color: var(--accent-2); }

:where(p, h1, h2, h3, a, li, figcaption){ overflow-wrap: anywhere; }

.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  padding:10px 12px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  z-index: 9999;
}
.skip-link:focus{ left:10px; }

.wrap{
  width:min(var(--wrap), calc(100% - 40px));
  margin-inline:auto;
}

/* TOPBAR */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  /* Richiesta: banner massimo chiaro all'inizio.
     La topbar resta leggibile grazie a ombre sul testo, ma non oscura il banner.
     Quando l'utente scorre, la topbar diventa più solida. */
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  background: transparent;
  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html.is-scrolled .topbar{
  background: rgba(11,11,11,.86);
  border-bottom-color: rgba(243,241,235,.16);
  box-shadow: 0 14px 38px rgba(0,0,0,.55);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 160px;
}
.brand__logo{
  width: 76px;
  height: 76px;
  object-fit: contain;
  opacity: .98;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.65));
}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.nav a{
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(243,241,235,.78);
  text-shadow: 0 10px 26px rgba(0,0,0,.65);
}
.nav a:hover{ color: var(--text); }

.nav-toggle{
  display:none;
  border:1px solid rgba(243,241,235,.18);
  background: rgba(11,11,11,.20);
  color: var(--text);
  padding:10px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-panel{
  border-top: 1px solid rgba(243,241,235,.12);
  background: rgba(11,11,11,.94);
}
.nav-panel__inner{
  padding: 14px 0 18px;
  display:grid;
  gap:12px;
}
.nav-panel a{
  padding: 10px 12px;
  border: 1px solid rgba(243,241,235,.14);
  border-radius: 12px;
  color: rgba(243,241,235,.76);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
}
.nav-panel a:hover{ color: var(--text); border-color: rgba(243,241,235,.28); }

@media (max-width: 860px){
  .nav{ display:none; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
}
@media (max-width: 560px){
  .brand{ min-width: 120px; }
  .brand__logo{ width: 60px; height: 60px; }
}

/* BANNER STAGE
   Obiettivi:
   - primo viewport: banner protagonista e chiaro (niente scrim/opacity sopra)
   - su mobile verticale: niente "vuoto" attorno (il banner deve riempire lo schermo)
   - scroll: il contenuto (sezioni) copre il banner perché il banner è fisso dietro

   Strategia:
   - 2 livelli immagine:
     1) blur cover (riempie tutto)
     2) main (contain su schermi larghi, cover su verticale)
   - UI minima in basso per far capire subito che è un sito.
*/
.banner-stage{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  border-bottom: 1px solid rgba(243,241,235,.12);
  z-index: 0;

  display:flex;
  align-items:flex-end;
  padding: 40px 0 44px;
}
@media (max-width: 560px){
  .banner-stage{ padding: 26px 0 28px; }
}

.banner-stage__media{
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}

.banner-stage__img{
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Riempie tutto: elimina il "void" con un fondo coerente */
.banner-stage__img--blur{
  object-fit: cover;
  object-position: center;
  filter: blur(34px);
  transform: scale(1.10);
}

/* Desktop / orizzontale: banner intero (no crop) */
.banner-stage__img--main{
  object-fit: contain;
  object-position: center;
}

/* Mobile / finestra verticale: deve riempire lo schermo (crop controllato) */
@media (max-width: 860px) and (max-aspect-ratio: 4/5){
  .banner-stage__img--main{ object-fit: cover; }
}

.banner-stage__ui{
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-peek{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;

  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(243,241,235,.18);
  background: var(--bg-2);
  box-shadow: 0 18px 54px rgba(0,0,0,.62);
}

.hero-peek__left{ min-width: 210px; }
.hero-peek__kicker{
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(243,241,235,.78);
}
.hero-peek__title{
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 22px;
  line-height: 1.05;
}

.hero-peek__actions{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.hero-peek__actions .btn{
  padding: 16px 26px;
  font-size: 15px;
}

@media (max-width: 860px){
  .hero-peek{ flex-direction: column; align-items: stretch; }
  .hero-peek__left{ min-width: 0; }
  .hero-peek__actions{ justify-content: stretch; }
  .hero-peek__actions .btn{ width: 100%; }
}

.scroll-hint{
  display:inline-flex;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(243,241,235,.72);
  text-shadow: 0 10px 26px rgba(0,0,0,.65);
}
.scroll-hint:hover{ color: var(--text); }

.hero__panel{
  max-width: 920px;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(243,241,235,.18);
  /* L'isola non deve "schiarire/scurire" il banner: ormai il banner è dietro e viene coperto
     dalla sezione, quindi qui usiamo uno sfondo pieno e pulito. */
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
@media (max-width: 560px){
  .hero__panel{ padding: 20px 18px; }
}

.hero__kicker{
  display:inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(243,241,235,.22);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(243,241,235,.82);
  background: rgba(11,11,11,.35);
}
.hero__title{
  margin: 16px 0 12px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  text-shadow: 0 16px 46px rgba(0,0,0,.60);
}
.hero__lead{
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(243,241,235,.92);
  max-width: 70ch;
}
.hero__actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top: 22px;
}

.hero__actions .btn{
  padding: 16px 26px;
  font-size: 15px;
}

@media (max-width: 560px){
  .hero__actions{ gap: 10px; }
  .hero__actions .btn{ width: 100%; padding: 16px 20px; }
}

/* Prima sezione dopo il banner: fa da "copertura" e introduce l'isola */
.section--island{
  padding: 72px 0;
  box-shadow: 0 -28px 70px rgba(0,0,0,.70);
}

.hero__note{
  margin-top: 10px;
  color: rgba(243,241,235,.75);
  font-size: 13px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(243,241,235,.28);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
  user-select:none;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(243,241,235,.5);
}
.btn--primary{
  background: var(--accent);
  border-color: rgba(0,0,0,.15);
  color: #0b0b0b;
}
.btn--primary:hover{ background: #e0584a; }
.btn--ghost{ background: rgba(11,11,11,.35); }
.btn[aria-disabled="true"]{ opacity: .95; }
.btn[aria-disabled="true"]:active{ transform:none; }

/* CONTENT SECTIONS
   IMPORTANT: sections get an opaque background so they "cover" the fixed banner. */
.section{
  padding: 64px 0;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* (La copertura del banner è gestita da .section--island) */

.section--alt{
  background:
    radial-gradient(900px 600px at 18% 0%, rgba(240,215,170,.07), transparent 55%),
    radial-gradient(900px 700px at 82% 10%, rgba(211,72,58,.06), transparent 55%),
    var(--bg-2);
  border-top: 1px solid rgba(243,241,235,.12);
  border-bottom: 1px solid rgba(243,241,235,.12);
}

h2{
  font-family: var(--serif);
  letter-spacing: -.01em;
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
}
h3{
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: .02em;
}
p{ margin: 0 0 12px; }
.muted{ color: var(--muted); }

.grid2{
  display:grid;
  gap: 26px;
  grid-template-columns: 1.25fr .85fr;
  align-items:start;
}
@media (max-width: 900px){
  .grid2{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid rgba(243,241,235,.14);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  background: rgba(16,16,16,.65);
  box-shadow: var(--shadow);
}
.card--highlight{
  background: radial-gradient(900px 500px at 20% 0%, rgba(240,215,170,.10), transparent 60%),
              rgba(16,16,16,.65);
}
.card__title{
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 20px;
}

.list{
  margin: 0;
  padding-left: 18px;
  color: rgba(243,241,235,.9);
}
.list li{ margin: 8px 0; }

/* Timeline */
.timeline{
  margin-top: 22px;
  display:grid;
  gap: 16px;
}
.timeline__item{
  display:grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  align-items:start;
  padding: 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(243,241,235,.14);
  background: rgba(16,16,16,.55);
}
.timeline__dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(240,215,170,.12);
}

/* Awards */
.awards{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}
@media (max-width: 900px){
  .awards{ grid-template-columns: 1fr; }
}
.award{
  border: 1px solid rgba(243,241,235,.14);
  border-radius: 16px;
  padding: 16px;
  background: rgba(16,16,16,.55);
}
.award p{ color: var(--muted); margin: 0; }

/* Gallery */
.gallery{
  margin-top: 18px;
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px){
  .gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .gallery{ grid-template-columns: 1fr; }
}

.gallery__item{
  margin: 0;
  border: 1px solid rgba(243,241,235,.14);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(16,16,16,.55);
}

.gallery__item img{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery__item figcaption{
  padding: 12px 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

/* Map placeholder */
.map-placeholder{
  margin-top: 12px;
  border: 1px dashed rgba(243,241,235,.28);
  border-radius: 16px;
  background: rgba(16,16,16,.35);
  padding: 16px;
  color: rgba(243,241,235,.6);
  min-height: 140px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Embedded Google Map */
.map-embed{
  margin-top: 12px;
  border: 1px solid rgba(243,241,235,.14);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(16,16,16,.35);
  position: relative;
  box-shadow: var(--shadow);
}

.map-embed iframe{
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

@media (max-width: 560px){
  .map-embed iframe{ height: 260px; }
}

/* Click overlay: opens Google Maps */
.map-embed__link{
  position: absolute;
  inset: 0;
}

/* Contacts */
.contacts{
  display:grid;
  gap: 12px;
}
.contact{
  border: 1px solid rgba(243,241,235,.14);
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: rgba(16,16,16,.55);
}
.contact__name{
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 10px;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(243,241,235,.12);
  padding: 26px 0;
  background: rgba(10,10,10,.92);
  position: relative;
  z-index: 1;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap:wrap;
}
.footer__brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.footer__brand img{ width: 44px; height: 44px; object-fit: contain; opacity: .92; }
.footer__title{
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.1;
}
.footer__small{
  color: var(--muted);
  font-size: 13px;
}
