/* ============================================================
   Via Dolorosa — foglio di stile del sito ricostruito
   ------------------------------------------------------------
   Scritto da zero al posto del tema Ronneby. Nessuna dipendenza:
   niente jQuery, niente page builder, niente plugin.
   I colori sono presi dal sito originale (oro #c39f76, testo
   #28262b) per non tradire l'identita' esistente.
   ============================================================ */

:root {
  --oro:        #c39f76;
  --scuro:      #35312d;   /* la barra e le sezioni scure */
  --scuro-velo: rgba(45, 41, 37, .92);
  --testo:      #4a4a4a;
  --testo-forte:#28262b;
  --chiaro:     #f7f5f2;
  --bordo:      #e6e1da;
  --barra:      64px;      /* altezza header: un solo valore, sempre lo stesso */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--testo);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--testo-forte);
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}

img { max-width: 100%; display: block; }
a   { color: var(--testo-forte); }

.contenitore { width: min(1180px, 92vw); margin-inline: auto; }

/* ---------- barra di navigazione ------------------------------
   Altezza fissa e identica sempre: niente stati diversi da
   tenere allineati, che e' esattamente il problema del tema. */

.barra {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--barra);
  background: var(--scuro-velo);
  backdrop-filter: blur(6px);
  z-index: 100;
}
.barra .contenitore {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.barra img { height: 34px; width: auto; }

.menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.menu a {
  display: block;
  padding: 8px 13px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .18s, color .18s;
}
.menu a:hover           { background: rgba(255,255,255,.12); }
.menu a[aria-current]   { background: rgba(255,255,255,.16); }

.lingue { display: flex; gap: 4px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.22); }
.lingue a { font-size: 12px; padding: 6px 8px; }
.lingue a.attiva { color: var(--oro); }

/* pulsante menu per schermi stretti */
.apri-menu {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.apri-menu span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .25s, opacity .2s;
}

/* ---------- apertura: foto a piena larghezza ---------- */

.apertura {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: calc(var(--barra) + 80px) 20px 90px;
  background: var(--scuro);
}
.apertura::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero.jpg") center/cover no-repeat;
  opacity: .55;
}
.apertura > * { position: relative; }
.apertura h1 {
  color: #fff;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: .02em;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.apertura p {
  margin: 18px 0 0;
  font-size: clamp(.95rem, 2vw, 1.15rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 300;
}

/* ---------- sezioni ---------- */

section { padding: 88px 0; }
section.chiara { background: var(--chiaro); }

.introduzione {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  font-size: 1.15rem;
}

.titolo-sezione { text-align: center; margin-bottom: 54px; }
.titolo-sezione h2 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.titolo-sezione::after {
  content: "";
  display: block;
  width: 62px; height: 2px;
  background: var(--oro);
  margin: 20px auto 0;
}

.griglia { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.scheda {
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.scheda:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.09); }
.scheda img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.scheda .corpo { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.scheda h3 { font-size: 1.7rem; }
.scheda .data {
  color: var(--oro);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 8px 0 14px;
}
.scheda p { margin: 0 0 24px; }
.scheda .bottone { margin-top: auto; align-self: flex-start; }

.bottone {
  display: inline-block;
  padding: 12px 30px;
  background: var(--testo-forte);
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .2s;
}
.bottone:hover      { background: var(--oro); }
.bottone.chiaro     { background: var(--oro); }
.bottone.chiaro:hover { background: #fff; color: var(--testo-forte); }

/* ---------- prodotti ---------- */

.prodotti { background: var(--scuro); color: #e9e4dd; }
.prodotti h2 { color: #fff; }
.prodotti .titolo-sezione::after { background: var(--oro); }
.prodotti .doppia { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }
.prodotti ul { list-style: none; padding: 0; margin: 0 0 28px; }
.prodotti li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  letter-spacing: .13em;
  font-size: .88rem;
  text-transform: uppercase;
}
.prodotti img { border-radius: 4px; }

/* ---------- contatti e chiusura ---------- */

.contatti { text-align: center; }
.contatti .avviso {
  max-width: 700px;
  margin: 0 auto 30px;
  padding: 22px 26px;
  background: #fff;
  border-left: 3px solid var(--oro);
  text-align: left;
}
.contatti a.mail { font-size: 1.25rem; color: var(--oro); text-decoration: none; }
.contatti a.mail:hover { text-decoration: underline; }

.chiusura {
  background: var(--testo-forte);
  color: #a9a29a;
  padding: 66px 0 40px;
  font-size: .9rem;
  text-align: center;
}
.chiusura img { height: 62px; width: auto; margin: 0 auto 26px; opacity: .9; }
.chiusura h3 { color: #fff; font-size: 1.1rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 22px; }
.chiusura ul { list-style: none; padding: 0; margin: 0 0 30px; line-height: 2; }
.chiusura .nota { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .8rem; color: #7d766e; }

/* ---------- schermi stretti ---------- */

@media (max-width: 900px) {
  .apri-menu { display: block; }

  .menu {
    position: fixed;
    inset: var(--barra) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--scuro-velo);
    backdrop-filter: blur(6px);
    padding: 8px 0 16px;
    /* chiuso di default: niente display:none, cosi' si puo' animare */
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .menu.aperto { max-height: 70vh; overflow-y: auto; }
  .menu a { padding: 14px 24px; font-size: 14px; border-radius: 0; }
  .lingue { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding: 8px 14px 0; margin-top: 8px; }

  .apri-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .apri-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .apri-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  section { padding: 62px 0; }
  .apertura { min-height: 440px; padding-top: calc(var(--barra) + 50px); }
}

/* ============================================================
   Pagine interne
   ============================================================ */

/* testata: fascia con foto di sfondo e titolo, sotto la barra */
.testata {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--barra) + 70px) 20px 70px;
  background: var(--scuro);
  color: #fff;
}
.testata::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--foto) center/cover no-repeat;
  opacity: .42;
}
.testata > * { position: relative; }
.testata h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4rem);
  text-shadow: 0 2px 26px rgba(0,0,0,.5);
}

.contenitore.stretto { width: min(820px, 92vw); }

.occhiello {
  color: var(--oro);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.guida { font-size: 1.2rem; color: var(--testo-forte); margin-bottom: 30px; }
.firma { color: var(--oro); font-style: italic; margin-top: 26px; }

.foto-larga { margin: 0; }
.foto-larga img { width: 100%; border-radius: 4px; }

.ritratto { margin: 0 0 34px; }
.ritratto img { width: 100%; max-width: 380px; border-radius: 4px; }

/* le quattordici stazioni */
.stazioni { display: grid; gap: 30px; }
.stazione {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: 4px;
  overflow: hidden;
}
.stazione img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.stazione .corpo { padding: 30px 34px 32px 4px; }
.stazione .numero {
  color: var(--oro);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.stazione h3 { font-size: 1.5rem; margin-bottom: 14px; }
.stazione p { margin: 0 0 12px; }
.stazione .fonte { color: #8a837b; font-size: .9rem; font-style: italic; margin: 0; }

@media (max-width: 780px) {
  .stazione { grid-template-columns: 1fr; }
  .stazione img { min-height: 220px; aspect-ratio: 3/2; }
  .stazione .corpo { padding: 24px 26px 28px; }
}
