/* =========================================================
   Ayuda Directa — 25° Anniversario — one-page eventi
   Palette:  crema #F7F3EB · bianco #FFFFFF · inchiostro #2A2620
             blu Ayuda #274FA6 · rosso Ayuda (accento raro) #AC1936
             sabbia (linee/divisori) #E1D6BE
   Tipi:     Fraunces (display) · Inter (corpo) · IBM Plex Mono (diario di bordo)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --cream:#F7F3EB;
  --white:#FFFFFF;
  --ink:#2A2620;
  --ink-soft:#59544A;
  --blue:#274FA6;
  --blue-deep:#1B3C82;
  --blue-tint:#EAF0FB;
  --red:#AC1936;
  --sand:#E1D6BE;
  --sand-line: rgba(42,38,32,0.14);
  --radius: 2px;
  --max: 1120px;

  /* palette ispirata ai tessuti andini, per accenti e ritmo */
  --ochre:#C48A2E;
  --ochre-tint:#FBF1DE;
  --forest:#3F5B47;
  --forest-tint:#E9F0EA;
  --terracotta:#A6293A;
}

.textile-stripe{
  height:10px;
  width:100%;
  background:repeating-linear-gradient(
    90deg,
    var(--blue) 0 40px,
    var(--terracotta) 40px 70px,
    var(--ochre) 70px 100px,
    var(--forest) 100px 130px,
    var(--cream) 130px 150px
  );
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
}

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;}
img{max-width:100%; display:block;}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 28px;
}

.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--blue);
}

h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  margin:0;
  color:var(--ink);
}

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--blue);
  border-bottom:1px solid rgba(255,255,255,0.14);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:14px;
  padding-bottom:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand img{height:32px; width:auto;}
.brand span{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.85);
}
.site-nav{
  display:flex;
  gap:28px;
}
.site-nav a{
  font-size:14px;
  text-decoration:none;
  color:rgba(255,255,255,0.85);
  border-bottom:1px solid transparent;
  padding-bottom:2px;
  transition:border-color .15s ease, color .15s ease;
}
.site-nav a:hover, .site-nav a:focus-visible{
  color:#fff;
  border-color:var(--ochre);
}
@media (max-width:720px){
  .site-nav{display:none;}
  .site-header .wrap{justify-content:center;}
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:88vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:#fff;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:url('assets/gallery/ad-03-cammino.jpg');
  background-size:cover;
  background-position:center 30%;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(20,32,58,0.30) 0%, rgba(18,28,52,0.35) 45%, rgba(15,23,43,0.86) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  padding-top:64px;
  padding-bottom:56px;
  width:100%;
}
.hero-logo{
  height:92px;
  width:auto;
  margin-bottom:32px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.30));
}
@media (max-width:720px){
  .hero-content{padding-top:40px; padding-bottom:44px;}
  .hero-logo{height:52px; margin-top:6px; margin-bottom:34px;}
}
.hero .eyebrow{ color:#CFDCF7; }

.hero-badge{
  display:flex;
  align-items:baseline;
  gap:16px;
  margin-bottom:6px;
}
.hero-badge .badge-num{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:clamp(3.4rem, 8vw, 5.6rem);
  line-height:1;
  letter-spacing:-0.02em;
  background:linear-gradient(135deg, #FBE3A1 0%, #F0B429 42%, #C9860F 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 2px 10px rgba(240,180,41,0.35));
}
.hero-badge .badge-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:14px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#fff;
  line-height:1.5;
  padding-bottom:6px;
}
.hero-badge .badge-label small{
  display:block;
  color:#CFDCF7;
  font-size:12px;
  letter-spacing:0.14em;
}

.hero h1{
  color:#fff;
  font-size:clamp(2.4rem, 5.6vw, 4.6rem);
  line-height:1.04;
  max-width:16ch;
  margin-top:14px;
  letter-spacing:-0.01em;
}
.hero p.lede{
  margin-top:22px;
  max-width:46ch;
  font-size:17px;
  color:#E7ECF7;
}
.hero-meta{
  margin-top:34px;
  display:flex;
  flex-wrap:wrap;
  gap:28px 44px;
  font-family:'IBM Plex Mono', monospace;
  font-size:13px;
  color:#CFDCF7;
}
.hero-meta strong{
  display:block;
  color:#fff;
  font-family:'Inter', sans-serif;
  font-size:15px;
  font-weight:600;
  margin-bottom:2px;
}

/* ---------- Intro strip ---------- */
.intro{
  padding:64px 0 40px;
  border-bottom:1px solid var(--sand-line);
  background:var(--blue-tint);
}
.intro .wrap{
  display:grid;
  grid-template-columns:1fr 1.6fr;
  gap:48px;
}
.intro h2{
  font-size:1.9rem;
  line-height:1.2;
}
.intro p{
  color:var(--ink-soft);
  font-size:15.5px;
  max-width:56ch;
}
@media (max-width:820px){
  .intro .wrap{grid-template-columns:1fr;}
}

/* ---------- Route / timeline section ---------- */
.route{
  padding:80px 0 40px;
  position:relative;
}
.route-head{
  margin-bottom:56px;
  max-width:64ch;
}
.route-head .eyebrow{margin-bottom:14px; display:block;}
.route-head h2{
  font-size:clamp(1.9rem, 3.4vw, 2.6rem);
}
.route-head p{
  color:var(--ink-soft);
  margin-top:14px;
  font-size:15.5px;
}

.voyage{
  position:relative;
}
/* the sailing route line — signature element */
.voyage-line{
  position:absolute;
  left:34px;
  top:8px;
  bottom:8px;
  width:2px;
  background:repeating-linear-gradient(
    180deg,
    var(--blue) 0, var(--blue) 6px,
    transparent 6px, transparent 12px
  );
}
@media (max-width:720px){
  .voyage-line{left:22px;}
}

.stop{
  position:relative;
  display:grid;
  grid-template-columns:68px 1fr;
  gap:0 36px;
  padding-bottom:72px;
}
.stop:last-child{padding-bottom:8px;}

.stop-marker{
  position:relative;
  display:flex;
  justify-content:center;
}
.stop-marker .dot{
  width:14px; height:14px;
  border-radius:50%;
  background:var(--cream);
  border:2px solid var(--blue);
  margin-top:6px;
  z-index:2;
}
.stop.is-highlight .stop-marker .dot{
  background:var(--blue);
}

.stop-body{
  background:var(--white);
  border:1px solid var(--sand-line);
  border-top:4px solid var(--blue);
  border-radius:var(--radius);
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr 1fr;
}
.stop:nth-child(3) .stop-body{border-top-color:var(--terracotta);}
.stop:nth-child(4) .stop-body{border-top-color:var(--ochre);}
.stop:nth-child(5) .stop-body{border-top-color:var(--forest);}
.stop:nth-child(6) .stop-body{border-top-color:var(--blue);}
.stop-body.no-media{grid-template-columns:1fr;}
@media (max-width:760px){
  .stop{grid-template-columns:34px 1fr; gap:0 20px;}
  .stop-body{grid-template-columns:1fr;}
  .stop-body .stop-media{order:1 !important;}
  .stop-body .stop-text{order:2 !important;}
}
/* ritmo: alterna l'ordine di foto e testo sulle tappe pari */
@media (min-width:761px){
  .stop:nth-child(even) .stop-media{order:2;}
  .stop:nth-child(even) .stop-text{order:1;}
}

.stop-media{
  position:relative;
  min-height:220px;
  background:var(--blue-tint);
}
.stop-media img{
  width:100%; height:100%;
  object-fit:cover;
  position:absolute; inset:0;
}
.stop-media.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--blue-deep);
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  text-align:center;
  letter-spacing:0.06em;
  text-transform:uppercase;
  padding:20px;
  background:var(--ochre-tint);
}
.stop-media.placeholder span{
  border:1px solid rgba(196,138,46,0.45);
  padding:14px 16px;
  border-radius:2px;
  background:#fff;
}
.stop-media.poster img{ object-fit:contain; background:#12213f; }

.repertoire-tag{
  position:absolute;
  left:0; bottom:0;
  font-family:'IBM Plex Mono', monospace;
  font-size:10.5px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:#fff;
  background:rgba(166,41,58,0.88);
  padding:6px 12px;
}

.stop-text{
  padding:30px 32px;
}
.stop-date{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--red);
}
.stop-text h3{
  font-size:1.5rem;
  margin-top:10px;
  line-height:1.2;
}
.stop-text .stop-sub{
  font-size:14px;
  color:var(--ink-soft);
  margin-top:4px;
  font-style:italic;
}
.stop-text p.desc{
  margin-top:14px;
  color:var(--ink-soft);
  font-size:15px;
}
.stop-tags{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.stop-tags span{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding:5px 9px;
  background:var(--blue-tint);
  color:var(--blue-deep);
  border-radius:2px;
}
.stop-tags a.download{
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:12.5px;
  text-decoration:none;
  padding:7px 14px;
  border-radius:2px;
  background:var(--terracotta);
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:background .15s ease;
}
.stop-tags a.download:hover{background:#8f1c30;}

/* ---------- History section (placeholder) ---------- */
.history{
  padding:88px 0;
  background:var(--white);
  border-top:1px solid var(--sand-line);
  border-bottom:1px solid var(--sand-line);
}
.history-head{
  display:grid;
  grid-template-columns:1fr 0.9fr;
  gap:56px;
  align-items:center;
  margin-bottom:44px;
}
.history-head .copy{max-width:56ch;}
.history-head .eyebrow{display:block; margin-bottom:14px;}
.history-head h2{font-size:clamp(1.9rem, 3.4vw, 2.6rem);}
.history-head p{color:var(--ink-soft); margin-top:14px; font-size:15.5px;}
.history-sketch{
  position:relative;
}
.sketch-visual{
  position:relative;
  padding:0 18px 18px 0;
}
.sketch-visual::before{
  content:"";
  position:absolute;
  top:24px; right:0;
  width:88%;
  height:96%;
  background:var(--ochre-tint);
  border:2px solid var(--ochre);
  border-radius:2px;
  z-index:0;
}
.history-sketch .frame{
  position:relative;
  z-index:1;
  transform:rotate(-1.4deg);
}
.history-sketch img{
  width:100%;
  max-width:420px;
  display:block;
  border-radius:2px;
  box-shadow:0 24px 48px rgba(42,38,32,0.28);
  border:10px solid #fff;
  outline:1px solid var(--sand-line);
}
.history-sketch .tag{
  display:inline-block;
  margin-top:18px;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#fff;
  background:var(--terracotta);
  padding:5px 11px;
  border-radius:2px;
}
.history-sketch p{
  margin-top:14px;
  font-size:15px;
  color:var(--ink);
  font-family:'Fraunces', serif;
  font-style:italic;
  font-weight:500;
  max-width:320px;
}
@media (max-width:820px){
  .history-head{grid-template-columns:1fr; gap:36px;}
  .sketch-visual{padding:0;}
  .sketch-visual::before{width:92%; right:auto; left:18px;}
  .history-sketch img{max-width:100%;}
}

.log-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  background:var(--sand-line);
  border:1px solid var(--sand-line);
}
.log-entry{
  background:var(--white);
  padding:26px 26px 24px;
  min-height:190px;
  display:flex;
  flex-direction:column;
  gap:10px;
  border-top:4px solid var(--blue);
}
.log-entry:nth-child(6n+2){border-top-color:var(--terracotta);}
.log-entry:nth-child(6n+3){border-top-color:var(--ochre);}
.log-entry:nth-child(6n+4){border-top-color:var(--forest);}
.log-entry:nth-child(6n+5){border-top-color:var(--terracotta);}
.log-entry:nth-child(6n+6){border-top-color:var(--ochre);}
.log-entry .yr{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--blue);
  letter-spacing:0.06em;
}
.log-entry h4{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:1.15rem;
  margin:0;
  color:var(--ink);
}
.log-entry p{
  font-size:13.8px;
  color:var(--ink-soft);
  margin:0;
  padding:10px 12px;
  border-radius:2px;
  border-left:3px solid var(--sand);
  background:var(--cream);
}
@media (max-width:820px){
  .log-grid{grid-template-columns:1fr;}
}

/* ---------- Gallery ---------- */
.gallery{
  padding:88px 0;
}
.gallery-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:24px;
  margin-bottom:36px;
  flex-wrap:wrap;
}
.gallery-head h2{font-size:clamp(1.7rem, 3vw, 2.2rem);}
.gallery-head p{
  color:var(--ink-soft);
  font-size:14px;
  max-width:44ch;
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}
.gallery-grid figure{
  margin:0;
  position:relative;
  aspect-ratio:4/5;
  overflow:hidden;
  border-radius:2px;
  background:var(--blue-tint);
}
.gallery-grid figure:nth-child(3n+1){aspect-ratio:4/5.6;}
.gallery-grid img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.gallery-grid figure:hover img{transform:scale(1.04);}
.gallery-grid figcaption{
  position:absolute;
  left:0; right:0; bottom:0;
  font-family:'IBM Plex Mono', monospace;
  font-size:10.5px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:#fff;
  background:linear-gradient(0deg, rgba(15,23,43,0.75), transparent);
  padding:22px 10px 8px;
}
@media (max-width:900px){
  .gallery-grid{grid-template-columns:repeat(2, 1fr);}
}

/* ---------- CTA strip ---------- */
.cta{
  position:relative;
  color:#fff;
  padding:72px 0;
  overflow:hidden;
}
.cta::before{
  content:"";
  position:absolute; inset:0;
  background-image:url('assets/gallery/ad-01-strada.jpg');
  background-size:cover;
  background-position:center 30%;
}
.cta::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(27,60,130,0.93) 0%, rgba(39,79,166,0.86) 60%, rgba(166,41,58,0.55) 100%);
}
.cta .wrap{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:20px;
}
.cta h2{
  color:#fff;
  font-size:clamp(1.5rem, 2.6vw, 2rem);
  max-width:22ch;
}
.cta-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.btn{
  display:inline-block;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:14px;
  padding:13px 22px;
  border-radius:2px;
  text-decoration:none;
  border:1px solid transparent;
}
.btn-light{
  background:#fff;
  color:var(--blue-deep);
}
.btn-light:hover{background:var(--cream);}
.btn-outline{
  border-color:rgba(255,255,255,0.6);
  color:#fff;
}
.btn-outline:hover{background:rgba(255,255,255,0.12);}

/* ---------- Footer ---------- */
footer{
  padding:48px 0 40px;
}
footer .wrap{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:24px;
}
.foot-brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.foot-brand img{height:28px;}
.foot-brand span{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--ink-soft);
}
footer .foot-links{
  display:flex;
  gap:22px;
  font-size:13.5px;
}
footer .foot-links a{text-decoration:none; color:var(--ink-soft);}
footer .foot-links a:hover{color:var(--blue);}
.foot-note{
  width:100%;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--sand-line);
  font-size:12.5px;
  color:var(--ink-soft);
}

/* ---------- Skip link / focus ---------- */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  background:var(--blue);
  color:#fff;
  padding:10px 16px;
  z-index:100;
}
.skip-link:focus{
  left:16px; top:16px;
}
a:focus-visible, button:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:2px;
}
