/* Parkiamo APS - stylesheet */

:root {
  --rosso: #d6334a;
  --rosso-scuro: #a82238;
  --viola: #4a3a5f;
  --viola-scuro: #281a39;
  --beige: #bcb4b0;
  --crema: #faf6ef;
  --crema-scuro: #efe7d8;
  --testo: #281a39;
  --testo-soft: #5a4f6a;
  --bianco: #ffffff;
  --ombra: 0 6px 24px rgba(40, 26, 57, 0.10);
  --raggio: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--testo);
  line-height: 1.6;
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--viola-scuro);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--testo-soft); }

a { color: var(--rosso); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rosso-scuro); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 2.25rem 0;
}

.section--crema { background: var(--crema); }
.section--viola { background: var(--viola-scuro); color: var(--crema); }
.section--viola h2, .section--viola h3 { color: var(--crema); }
.section--viola p { color: rgba(255,255,255,0.85); }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rosso);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* Cuore decorativo tra sezioni */
.heart-divider {
  text-align: center;
  padding: 2.5rem 0 1rem;
  background: var(--crema);
}
.heart-divider svg {
  width: 44px;
  height: 44px;
  fill: var(--rosso);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
body {
  background-color: var(--crema);
  background-image: url('../img/travel-bg.svg');
  background-repeat: repeat;
  background-size: 1400px 1400px;
  background-attachment: fixed;
}

/* Sezioni "carta" traslucide sul cielo — vedi block dedicato più sotto */
.section--paper { position: relative; }
.section--paper > .container { position: relative; z-index: 1; }
.heart-divider { background: transparent; }

/* ---------- Sezione con sfondo bianco che "galleggia" sul cielo ---------- */
.section--white {
  background: #ffffff;
  position: relative;
}
/* Separatore a nuvole (bordo superiore o inferiore della sezione bianca) */
.cloud-edge { display: block; width: 100%; height: 90px; line-height: 0; position: relative; z-index: 2; }
.cloud-edge svg {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 6px 6px rgba(40, 26, 57, 0.14));
}
.cloud-edge--top svg {
  filter: drop-shadow(0 -6px 6px rgba(40, 26, 57, 0.14));
}

/* ---------- Fondo "carta" traslucido per sezioni con nuvole di sfondo ---------- */
.section--paper {
  background: rgba(250, 246, 239, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ---------- Sezione News (stile cartolina di viaggio) ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.postcard {
  background: var(--bianco);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(40, 26, 57, 0.12), 0 2px 4px rgba(40, 26, 57, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotate(-0.6deg);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.postcard:nth-child(even) { transform: rotate(0.7deg); }
.postcard:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 20px 40px rgba(40, 26, 57, 0.18);
}
.postcard__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--crema-scuro);
}
.postcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.postcard:hover .postcard__media img { transform: scale(1.04); }
.postcard__body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.postcard__meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rosso);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.postcard__body h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.postcard__body p { font-size: 0.95rem; margin-bottom: 1rem; flex: 1; }
.postcard__link {
  align-self: flex-start;
  font-weight: 600;
  color: var(--rosso);
  border-bottom: 1px dashed var(--rosso);
  padding-bottom: 2px;
}
.postcard__link:hover { color: var(--rosso-scuro); border-bottom-style: solid; }
/* piccolo "francobollo" decorativo in alto a destra */
.postcard::after {
  content: '♥';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: var(--bianco);
  color: var(--rosso);
  border: 1.5px dashed var(--rosso);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* ---------- Pagina singolo post ---------- */
.post-article { padding: 3rem 0 2rem; }
.post-header { text-align: center; max-width: 780px; padding-bottom: 2rem; }
.post-header h1 { margin-top: 0.4rem; }
.post-hero {
  max-width: 1000px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}
.post-hero img {
  width: 100%;
  height: auto;
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-body {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.75;
}
.post-body p { margin-bottom: 1.2rem; color: var(--testo); }
.post-body h2, .post-body h3 { margin: 2rem 0 0.8rem; }
.post-body blockquote {
  border-left: 3px solid var(--rosso);
  padding: 0.5rem 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--viola-scuro);
  background: rgba(214, 51, 74, 0.05);
  border-radius: 0 8px 8px 0;
}
.post-body a { border-bottom: 1px solid rgba(214,51,74,0.3); }
.post-body a:hover { border-bottom-color: var(--rosso); }

/* ---------- Google Calendar embed ---------- */
.calendar-wrap {
  margin-top: 2rem;
  background: var(--bianco);
  border-radius: var(--raggio);
  padding: 1rem;
  box-shadow: var(--ombra);
  overflow: hidden;
}
.calendar-frame {
  position: relative;
  width: 100%;
  padding-top: 62%; /* aspect ratio ~ 16/10 */
  border-radius: 8px;
  overflow: hidden;
  background: var(--crema);
}
.calendar-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.calendar-frame--tall { padding-top: 80%; }
@media (max-width: 720px) {
  .calendar-frame { padding-top: 130%; }
  .calendar-frame--tall { padding-top: 150%; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--crema-scuro);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 2rem;
}

.logo img { height: 56px; width: auto; }

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--viola-scuro);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

.nav a:hover,
.nav a.active {
  color: var(--rosso);
  border-bottom-color: var(--rosso);
}
.nav a.active { font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--viola-scuro);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--bianco);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 26, 57, 0.05) 0%, rgba(40, 26, 57, 0.30) 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  max-width: 800px;
}

.hero h1 {
  color: var(--bianco);
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero p {
  color: rgba(255,255,255,0.95);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
}

.btn--primary {
  background: var(--rosso);
  color: var(--bianco);
}
.btn--primary:hover {
  background: var(--rosso-scuro);
  color: var(--bianco);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(214, 51, 74, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--bianco);
  border-color: var(--bianco);
}
.btn--outline:hover {
  background: var(--bianco);
  color: var(--viola-scuro);
}

.btn--ghost {
  background: transparent;
  color: var(--viola-scuro);
  border-color: var(--viola-scuro);
}
.btn--ghost:hover {
  background: var(--viola-scuro);
  color: var(--bianco);
}

/* Gruppo di bottoni: gestisce spaziatura e wrap in modo coerente su mobile */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bianco);
  border-radius: var(--raggio);
  padding: 2rem;
  box-shadow: var(--ombra);
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 51, 74, 0.12);
  color: var(--rosso);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ---------- Sezione "Cosa FacciAmo" (attività) ---------- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.activity {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(40, 26, 57, 0.14);
  transition: transform .35s ease, box-shadow .35s ease;
  color: var(--bianco);
  background: var(--viola-scuro);
}
.activity:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(40, 26, 57, 0.22);
  color: var(--bianco);
}
.activity__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.activity:hover .activity__img { transform: scale(1.06); }
.activity__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40,26,57,0) 40%, rgba(40,26,57,0.85) 100%);
}
.activity__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.2rem 1.3rem;
  z-index: 2;
}
.activity__body h3 {
  color: var(--bianco);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.activity__body p {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
/* Piccola icona/cuore in alto a destra */
.activity__badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--rosso);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
.activity__badge svg { width: 20px; height: 20px; fill: currentColor; }
/* Varianti senza foto: card testuale con colore soft */
.activity--text {
  background: linear-gradient(135deg, #efe7d8 0%, #f8f0e0 100%);
  color: var(--viola-scuro);
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem;
}
.activity--text:hover { color: var(--viola-scuro); }
.activity--text .activity__body { position: static; padding: 0; }
.activity--text .activity__body h3 { color: var(--viola-scuro); text-shadow: none; }
.activity--text .activity__body p { color: var(--testo-soft); text-shadow: none; }
.activity--text .activity__badge { background: var(--rosso); color: var(--bianco); }

/* ---------- Sezione "doppia colonna" ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split img {
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
}

/* ---------- Donate hero (PayPal in evidenza) ---------- */
.donate-hero {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  border: 2px solid var(--rosso);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px rgba(214, 51, 74, 0.18);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}
.donate-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: rgba(214, 51, 74, 0.08);
  border-radius: 50%;
  z-index: 0;
}
.donate-hero__text { position: relative; z-index: 1; }
.donate-hero__text .eyebrow { color: var(--rosso); }
.donate-hero__text h2 { color: var(--viola-scuro); margin-top: .3rem; }
.donate-hero__text p { font-size: 1.05rem; }
.donate-hero__action {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}
.donate-hero__amounts {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center;
  margin-bottom: .3rem;
}
.donate-hero__amounts .btn {
  padding: .6rem 1.1rem;
  font-size: .95rem;
  border: 2px solid var(--rosso);
  background: var(--bianco);
  color: var(--rosso);
}
.donate-hero__amounts .btn:hover {
  background: var(--rosso);
  color: var(--bianco);
}
.btn--paypal {
  background: #ffc439;
  color: #003087 !important;
  border: 2px solid #ffc439;
  font-size: 1.15rem;
  padding: 1.1rem 2rem;
  box-shadow: 0 6px 16px rgba(255, 196, 57, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
.btn--paypal:hover {
  background: #f0b429;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 196, 57, 0.55);
  color: #003087 !important;
}
.btn--paypal svg { width: 22px; height: 22px; }
.donate-note {
  text-align: center;
  font-size: .85rem;
  color: var(--testo-soft);
  margin: 0;
}

@media (max-width: 720px) {
  .donate-hero { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--rosso);
  color: var(--bianco);
  border-radius: var(--raggio);
  padding: 3rem;
  text-align: center;
}
.cta-banner h2 { color: var(--bianco); }
.cta-banner p { color: rgba(255,255,255,0.92); margin-bottom: 1.5rem; }

/* ---------- Page header (interne) ---------- */
.page-header {
  background: var(--crema);
  padding: 5rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--crema-scuro);
}
.page-header .eyebrow { color: var(--rosso); }

/* ---------- Form contatti ---------- */
.form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 0;
}
.form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--viola-scuro);
  margin-bottom: 0.25rem;
}
.form input,
.form textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid #d4ccc0;
  border-radius: 10px;
  background: var(--bianco);
  transition: border-color .2s;
  width: 100%;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--rosso);
}
.form .field { display: flex; flex-direction: column; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--viola-scuro);
  color: var(--beige);
  padding: 4rem 0 1.5rem;
  font-size: 0.95rem;
}
.site-footer h4 { color: var(--bianco) !important; }
.site-footer a { color: var(--beige); }
.site-footer a:hover { color: var(--bianco); }
.site-footer p { color: var(--beige); }
.site-footer h4 {
  color: var(--bianco);
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--bianco); }
.site-footer p { color: rgba(255,255,255,0.7); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.social a:hover { background: var(--rosso); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Bottone "torna su" ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--rosso);
  color: var(--bianco);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(214, 51, 74, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--rosso-scuro);
  transform: translateY(-3px);
}
.back-to-top svg {
  width: 22px; height: 22px;
  fill: currentColor;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bianco);
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--crema-scuro);
    box-shadow: var(--ombra);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; width: 100%; border-bottom: 1px solid var(--crema-scuro); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .site-header { position: sticky; }

  .split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 1.75rem 0; }
  .hero { min-height: 70vh; }
}

/* ---------- Aggiustamenti smartphone (<=560px) ---------- */
@media (max-width: 560px) {
  .container { padding: 0 1.1rem; }

  /* Bottoni: touch target min 44px, no overflow su schermi stretti */
  .btn { padding: 0.85rem 1.4rem; font-size: 0.98rem; }
  .btn--paypal { padding: 1rem 1.4rem; font-size: 1.05rem; }

  /* Hero: meno padding verticale, bottoni pieni e allineati */
  .hero__inner { padding: 3rem 1.1rem; }
  .hero p { font-size: 1.1rem; }
  .hero .btn-group { width: 100%; }
  .hero .btn-group .btn { flex: 1 1 auto; min-width: 160px; max-width: 260px; }

  /* Page header interne: meno padding */
  .page-header { padding: 3rem 0 2rem; }

  /* CTA banner: meno padding + bottone leggibile */
  .cta-banner { padding: 2rem 1.25rem; border-radius: 12px; }
  .cta-banner .btn--paypal { width: 100%; max-width: 320px; }

  /* Donazioni PayPal: 2×2 pulito sui quick amount */
  .donate-hero__amounts { gap: 0.5rem; }
  .donate-hero__amounts .btn { flex: 1 1 calc(50% - 0.5rem); padding: 0.7rem 0.5rem; }

  /* Card più compatte */
  .card { padding: 1.5rem 1.25rem; }
  .activity-grid { gap: 1.25rem; }

  /* Nav-toggle: touch target */
  .nav-toggle { padding: 0.5rem 0.75rem; font-size: 2rem; line-height: 1; }
}

/* Su viewport davvero stretto (<=380px) evita overflow orizzontali */
@media (max-width: 380px) {
  .container { padding: 0 0.9rem; }
  .btn { padding: 0.8rem 1.1rem; font-size: 0.95rem; }
  .hero h1 { font-size: 2rem; }
}

/* ---------- Direttivo ---------- */
.board-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--crema);
  border: 1px solid rgba(214, 51, 74, 0.15);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  padding: 2.5rem 2.5rem 2rem;
}
.board-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.board-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  align-items: baseline;
}
.board-row:last-child { border-bottom: none; }
.board-role {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--rosso);
  font-size: 1.05rem;
}
.board-name {
  font-weight: 500;
  color: var(--testo);
  font-size: 1.1rem;
}
.board-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  font-size: 0.9rem;
  color: var(--testo-soft);
  text-align: center;
}
.board-note a {
  color: var(--rosso);
  text-decoration: underline;
  text-decoration-color: rgba(214, 51, 74, 0.35);
  text-underline-offset: 3px;
}
.board-note a:hover { text-decoration-color: var(--rosso); }

@media (max-width: 720px) {
  .board-box { padding: 1.75rem 1.5rem 1.5rem; }
  .board-row { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.85rem 0; }
  .board-role { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
}

/* ---------- Pagine legali (privacy / cookie) ---------- */
.container--narrow {
  max-width: 820px;
}
.container--narrow h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
}
.container--narrow h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  color: var(--viola);
}
.container--narrow ul {
  margin: 0 0 1rem 1.4rem;
  color: var(--testo-soft);
}
.container--narrow ul li { margin-bottom: 0.35rem; }
.container--narrow p.muted { color: var(--beige); font-size: 0.9rem; }
.container--narrow code {
  background: var(--crema);
  border: 1px solid var(--crema-scuro);
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
}

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--bianco);
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra);
}
.policy-table th,
.policy-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--crema-scuro);
  vertical-align: top;
}
.policy-table th {
  background: var(--crema);
  color: var(--viola-scuro);
  font-weight: 600;
}
.policy-table tr:last-child td { border-bottom: none; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: var(--viola-scuro);
  color: var(--crema);
  border-radius: var(--raggio);
  box-shadow: 0 12px 40px rgba(40, 26, 57, 0.35);
  animation: cookieSlideUp .35s ease-out;
}
@keyframes cookieSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text { flex: 1 1 320px; min-width: 0; }
.cookie-banner__text strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--bianco);
}
.cookie-banner__text p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--crema);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover { color: var(--bianco); }
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner__actions .btn { margin: 0; }
.cookie-banner__actions .btn--ghost {
  border-color: rgba(255,255,255,0.35);
  color: var(--crema);
  background: transparent;
}
.cookie-banner__actions .btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--bianco);
}

@media (max-width: 620px) {
  .cookie-banner { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
  .cookie-banner__inner { padding: 1rem; gap: 1rem; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- Modal 5x1000 ---------- */
body.fpm-lock { overflow: hidden; }

.fpm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(40, 26, 57, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.fpm-overlay.is-visible { opacity: 1; }
.fpm-overlay.is-closing { opacity: 0; }

.fpm-card {
  position: relative;
  background: var(--crema);
  border-radius: var(--raggio);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 2.4rem 2rem 1.8rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: translateY(16px) scale(.98);
  transition: transform .3s cubic-bezier(.2,.9,.3,1);
}
.fpm-overlay.is-visible .fpm-card { transform: translateY(0) scale(1); }

.fpm-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--testo-soft);
  cursor: pointer;
  padding: .4rem .6rem;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.fpm-close:hover { background: rgba(0,0,0,0.06); color: var(--rosso); }

.fpm-heart {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.6rem;
}
.fpm-heart svg {
  width: 100%;
  height: 100%;
  fill: var(--rosso);
  animation: pulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(214, 51, 74, 0.35));
}

.fpm-card h2 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  margin: 0.4rem 0 0.8rem;
  color: var(--viola-scuro);
}
.fpm-card h2 strong {
  color: var(--rosso);
  font-weight: 700;
}
.fpm-card > p {
  color: var(--testo-soft);
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
}

.fpm-cf {
  width: 100%;
  background: var(--bianco);
  border: 2px dashed var(--rosso);
  border-radius: var(--raggio);
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: inherit;
  transition: background .2s, border-color .2s;
}
.fpm-cf:hover { background: var(--crema-scuro); }
.fpm-cf__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rosso);
  font-weight: 600;
}
.fpm-cf__value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--viola-scuro);
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
}
.fpm-cf__copy {
  font-size: 0.8rem;
  color: var(--testo-soft);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--crema-scuro);
  border-radius: 8px;
}

.fpm-copied {
  display: block;
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: var(--rosso);
  font-weight: 600;
  opacity: 0;
  transition: opacity .25s;
  margin-bottom: 0.4rem;
}
.fpm-copied.is-visible { opacity: 1; }

.fpm-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.fpm-actions .btn { margin: 0; }

@media (max-width: 480px) {
  .fpm-card { padding: 2rem 1.2rem 1.4rem; }
  .fpm-cf { flex-wrap: wrap; }
  .fpm-cf__value { font-size: 1.3rem; order: -1; width: 100%; }
  .fpm-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- Accessibilità ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10001;
  background: var(--viola-scuro);
  color: var(--crema);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--rosso);
  outline-offset: 2px;
  color: var(--crema);
}

/* Focus visibile uniforme per elementi interattivi */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--rosso);
  outline-offset: 3px;
  border-radius: 6px;
}
.nav a:focus-visible {
  outline-offset: 4px;
}

/* Riduci animazioni per utenti che lo richiedono */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .heart-divider svg,
  .fpm-heart svg { animation: none !important; }
}

/* ---------- Google Maps embed ---------- */
.map-wrap {
  margin-top: 1.5rem;
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra);
  aspect-ratio: 16 / 10;
  background: var(--crema-scuro);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Contact info blocks ---------- */
.contact-info { margin-top: 1.2rem; }
.contact-info__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.contact-info__row svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  fill: var(--rosso);
}
.contact-info__row a { color: var(--viola-scuro); }
.contact-info__row a:hover { color: var(--rosso); }
.contact-info__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rosso);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* ---------- Share buttons (post) ---------- */
.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 2.5rem 0 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--crema);
  border-radius: var(--raggio);
}
.post-share__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--viola-scuro);
  letter-spacing: 0.04em;
  margin-right: 0.3rem;
}
.post-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bianco);
  color: var(--viola-scuro);
  border: 1px solid rgba(40, 26, 57, 0.12);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.post-share__btn svg { width: 18px; height: 18px; }
.post-share__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(40, 26, 57, 0.10);
}
.post-share__btn--wa { color: #25D366; }
.post-share__btn--wa:hover { background: #25D366; color: #fff; }
.post-share__btn--fb { color: #1877F2; }
.post-share__btn--fb:hover { background: #1877F2; color: #fff; }
.post-share__btn--tg { color: #229ED9; }
.post-share__btn--tg:hover { background: #229ED9; color: #fff; }
.post-share__btn--mail:hover { background: var(--rosso); color: #fff; }
.post-share__btn--copy:hover { background: var(--viola-scuro); color: #fff; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 5.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.55);
  color: #fff;
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: currentColor; }
.whatsapp-fab__tooltip {
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--viola-scuro);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.whatsapp-fab:hover .whatsapp-fab__tooltip { opacity: 1; }
@media (max-width: 640px) {
  .whatsapp-fab { width: 52px; height: 52px; bottom: 4.5rem; right: 1rem; }
  .whatsapp-fab__tooltip { display: none; }
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bianco);
  border: 1px solid rgba(40, 26, 57, 0.08);
  border-radius: var(--raggio);
  margin-bottom: 0.9rem;
  box-shadow: 0 2px 8px rgba(40, 26, 57, 0.04);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--viola-scuro);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--rosso);
  font-weight: 400;
  transition: transform .2s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__body {
  padding: 0 1.4rem 1.3rem;
  color: var(--testo-soft);
}
.faq-item__body p { margin-bottom: 0.7rem; }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ---------- Chi siamo: valori + team ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  background: var(--bianco);
  border-radius: var(--raggio);
  padding: 1.5rem;
  box-shadow: var(--ombra);
  text-align: center;
}
.value-card__icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.value-card p { margin-bottom: 0; font-size: 0.95rem; }

.timeline {
  max-width: 720px;
  margin: 2rem auto 0;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(214, 51, 74, 0.25);
}
.timeline__item {
  position: relative;
  margin-bottom: 1.8rem;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rosso);
  border: 3px solid var(--crema);
}
.timeline__date {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rosso);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.timeline__item h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.timeline__item p { margin-bottom: 0; }

/* ---------- Tax info box (sostienici) ---------- */
.tax-box {
  background: var(--crema);
  border-left: 4px solid var(--rosso);
  border-radius: var(--raggio);
  padding: 1.5rem 1.7rem;
  margin: 2.5rem 0;
}
.tax-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tax-box ul {
  margin: 0.6rem 0 0.3rem 1.2rem;
  color: var(--testo-soft);
}
.tax-box ul li { margin-bottom: 0.4rem; }
.tax-box small { color: var(--testo-soft); font-size: 0.82rem; }
