/* =========================================================
   Sanremo Holistic Festival — nuova identity
   Palette e forme ispirate alla locandina 2026
   ========================================================= */

:root {
  --green-900: #102a23;
  --green-800: #14342b;
  --green-700: #1c4a3d;
  --green-600: #256352;
  --green-400: #4e9c82;
  --green-100: #dceae3;

  --coral-600: #c2513a;
  --coral-500: #e2725b;
  --coral-300: #f2a894;

  --gold-500: #d6a64c;
  --gold-200: #efd9a8;

  --sand-100: #faf5ec;
  --sand-200: #f3ead9;
  --sand-300: #e7d9bf;

  --ink: #17201d;
  --body: #4a5551;
  --muted: #7d8a85;
  --line: rgba(16, 42, 35, 0.12);

  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(16, 42, 35, 0.06);
  --shadow: 0 14px 40px rgba(16, 42, 35, 0.12);
  --shadow-lg: 0 30px 70px rgba(16, 42, 35, 0.22);

  --container: 1200px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--sand-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-800);
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green-700);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-800);
  color: #fff;
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------------- TYPO HELPERS ---------------- */

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin: 0 0 14px;
}

.section__title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin-bottom: 16px;
}

.section__lead {
  font-size: 1.06rem;
  max-width: 62ch;
  color: var(--body);
}

.section__head {
  margin-bottom: 52px;
  max-width: 760px;
}

.accent {
  color: var(--coral-500);
  font-style: italic;
}

/* ---------------- BUTTONS ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(120deg, var(--coral-500), var(--coral-600));
  color: #fff;
  box-shadow: 0 10px 26px rgba(226, 114, 91, 0.32);
}
.btn--primary:hover {
  box-shadow: 0 16px 34px rgba(226, 114, 91, 0.42);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--green-800);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--green-700);
  background: rgba(28, 74, 61, 0.06);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 34px;
  font-size: 15px;
}

.inline-form {
  display: inline;
}

/* ---------------- HEADER ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 14px 0;
}

.site-header.is-scrolled {
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 34px rgba(16, 42, 35, 0.08);
  padding: 8px 0;
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sand-100);
  border: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__text strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.brand__text em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-200);
  margin-top: 3px;
}

.site-header.is-scrolled .brand__mark {
  background: var(--sand-100);
  border-color: var(--line);
  box-shadow: 0 2px 10px rgba(16, 42, 35, 0.14);
}
.site-header.is-scrolled .brand__text strong {
  color: var(--green-800);
}
.site-header.is-scrolled .brand__text em {
  color: var(--coral-600);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1.5px;
  background: var(--coral-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.site-nav a:hover {
  color: #fff;
}
.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-header.is-scrolled .site-nav a {
  color: var(--green-800);
}
.site-header.is-scrolled .site-nav a::after {
  background: var(--coral-500);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-header .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.site-header .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}
.site-header.is-scrolled .btn--ghost {
  border-color: var(--line);
  color: var(--green-800);
}
.site-header.is-scrolled .btn--ghost:hover {
  background: rgba(28, 74, 61, 0.07);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
}
.site-header.is-scrolled .nav-toggle span {
  background: var(--green-800);
}

/* ---------------- MESSAGES ---------------- */

.messages {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green-600);
  font-size: 14px;
  color: var(--ink);
  animation: slideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.message--success { border-left-color: #2f7d5f; }
.message--warning { border-left-color: var(--gold-500); }
.message--error { border-left-color: var(--coral-600); }
.message__close {
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------------- HERO ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 50px) 0 80px;
  background:
    radial-gradient(1200px 600px at 78% 18%, rgba(226, 114, 91, 0.28), transparent 60%),
    radial-gradient(900px 700px at 12% 82%, rgba(78, 156, 130, 0.24), transparent 62%),
    linear-gradient(160deg, #0e2620 0%, var(--green-800) 45%, #1b463a 100%);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(760px 480px at 70% 30%, rgba(214, 166, 76, 0.16), transparent 65%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(3.1rem, 7.2vw, 5.6rem);
  color: #fff;
  margin: 0 0 14px;
  line-height: 0.98;
  font-weight: 600;
}

.hero__title-accent {
  font-style: italic;
  color: var(--gold-200);
  font-weight: 500;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--coral-300);
  margin-bottom: 18px;
}

.hero__lead {
  font-size: 1.03rem;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.76);
}
.hero__lead strong {
  color: #fff;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 38px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__meta-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.hero__meta-icon svg {
  width: 19px;
  height: 19px;
  fill: var(--gold-200);
}

.hero__meta-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.hero__meta-item em {
  font-style: normal;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.58);
}

.hero__visual {
  position: relative;
}

.hero__poster {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, 0.14);
}
.hero__poster img {
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero__poster picture {
  display: block;
  overflow: hidden;
}
/* Zoom minimo al passaggio del mouse (solo su dispositivi con hover) */
@media (hover: hover) and (pointer: fine) {
  .hero__poster:hover img {
    transform: scale(1.04);
  }
}

.hero__poster-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 42, 35, 0.82);
  color: var(--gold-200);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(16, 42, 35, 0.3);
}

.hero__countdown {
  position: relative;
  margin-top: -46px;
  margin-left: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.countdown__cell {
  background: rgba(16, 42, 35, 0.82);
  padding: 16px 10px;
  text-align: center;
}

.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-200);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------------- PILLARS ---------------- */

.pillars {
  padding: 76px 0;
  background: var(--sand-200);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar {
  padding: 30px 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.pillar__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--coral-500);
  margin-bottom: 12px;
}
.pillar h3 {
  font-size: 1.32rem;
}
.pillar p {
  font-size: 14px;
  margin: 0;
  color: var(--body);
}

/* ---------------- SECTIONS ---------------- */

.section {
  padding: 96px 0;
  position: relative;
}

.section--sand {
  background: var(--sand-200);
}

.section--cream {
  background: #fffdf8;
}

.section--deep {
  background: linear-gradient(165deg, var(--green-800), var(--green-900));
  color: rgba(255, 255, 255, 0.78);
}
.section--deep .section__title,
.section--deep h3 {
  color: #fff;
}
.section--deep .section__lead,
.section--deep .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}
.section--deep .eyebrow {
  color: var(--gold-200);
}

/* ---------------- TIMELINE ---------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 40px;
  padding: 20px 0;
  position: relative;
}

.timeline__time {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-700);
  text-align: right;
  padding-top: 2px;
}

.timeline__body {
  position: relative;
  padding-left: 34px;
}
.timeline__body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sand-200);
  border: 2.5px solid var(--coral-500);
}

.timeline__body h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.timeline__body p {
  margin: 0;
  font-size: 14.5px;
}
.timeline__by {
  color: var(--coral-600) !important;
  font-size: 13px !important;
  font-weight: 500;
}

/* ---------------- CARDS ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards--compact {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(226, 114, 91, 0.4);
}

.card__time {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: 10px;
}

.card__title {
  font-size: 1.32rem;
  margin-bottom: 6px;
}

.card__by {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.card__text {
  font-size: 14.5px;
  margin: 0;
}

.card__tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card--icon {
  text-align: center;
  padding-top: 34px;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-100);
  font-size: 25px;
}
.card--icon h3 {
  font-size: 1.22rem;
}
.card--icon p {
  font-size: 14px;
  margin: 0;
}

.card--flat {
  background: rgba(255, 255, 255, 0.65);
}

.empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* ---------------- MINI SESSIONI ---------------- */

.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.22s ease, transform 0.22s ease;
}
.mini:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(4px);
}

.mini__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
}

.mini__duration {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-200);
}

.mini__by {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------- OPERATORI ---------------- */

.operatori {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 26px 0 32px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  font-size: 15px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--coral-500);
  border-bottom: 2px solid var(--coral-500);
  transform: rotate(-45deg);
}

.operatori__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, 0.1);
}
.operatori__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- BENEFICIARIO ---------------- */

.beneficiary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 46px;
  align-items: center;
  margin-top: 62px;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.beneficiary__img {
  border-radius: var(--radius);
  overflow: hidden;
}
.beneficiary__copy h3 {
  font-size: 1.7rem;
}

/* ---------------- CTA ---------------- */

.section--cta {
  background:
    radial-gradient(800px 460px at 50% 0%, rgba(226, 114, 91, 0.22), transparent 65%),
    linear-gradient(160deg, var(--green-700), var(--green-900));
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-align: center;
}
.section--cta .hero__particles {
  z-index: 0;
}
.cta {
  position: relative;
  z-index: 2;
}
.cta__title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: #fff;
  max-width: 18ch;
  margin-inline: auto;
}
.cta__lead {
  max-width: 60ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.75);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}
.section--cta .btn--outline {
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------------- FORMS ---------------- */

.page-main {
  padding: calc(var(--header-h) + 60px) 0 90px;
}

.page-head {
  background: linear-gradient(150deg, var(--green-800), var(--green-900));
  color: rgba(255, 255, 255, 0.78);
  padding: calc(var(--header-h) + 62px) 0 62px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-head h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  margin-bottom: 10px;
}
.page-head p {
  max-width: 60ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.7);
}
.page-head .eyebrow {
  color: var(--gold-200);
}

.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 44px;
  align-items: start;
}

.card-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-800);
  letter-spacing: 0.01em;
}
.field__label .req {
  color: var(--coral-600);
}

.field__input,
.field__input input,
.field__input textarea,
.field__input select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--sand-100);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field__input:focus,
.field__input input:focus,
.field__input textarea:focus,
.field__input select:focus {
  outline: none;
  border-color: var(--green-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(78, 156, 130, 0.16);
}

.field__input input:focus,
.field__input textarea:focus,
.field__input select:focus {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

textarea.field__input {
  min-height: 120px;
  resize: vertical;
}

.field__help {
  font-size: 12.5px;
  color: var(--muted);
}

.field__errors {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--coral-600);
  font-weight: 500;
}

.form-errorlist {
  background: #fdeeea;
  border: 1px solid rgba(194, 81, 58, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  color: var(--coral-600);
  font-size: 14px;
}
.form-errorlist li {
  list-style: none;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  display: block;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--sand-100);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.choice input:checked + span {
  border-color: var(--coral-500);
  background: rgba(226, 114, 91, 0.08);
  color: var(--green-800);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--coral-500);
  outline-offset: 2px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  background: var(--sand-100);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.checkbox input {
  margin-top: 3px;
  accent-color: var(--coral-500);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.checkbox span {
  font-size: 13.5px;
  line-height: 1.55;
}
.checkbox a {
  color: var(--coral-600);
  font-weight: 600;
}

.form-legend {
  grid-column: 1 / -1;
  margin: 14px 0 -4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green-800);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.aside-note {
  background: var(--sand-200);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.aside-note h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.aside-note ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}
.aside-note li {
  margin-bottom: 8px;
}
.aside-note + .aside-note {
  margin-top: 20px;
}

/* ---------------- AREA PERSONALE ---------------- */

.dash {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.dash__card {
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.dash__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--coral-500);
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}
.dash__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 2px;
}
.dash__mail {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  word-break: break-all;
}
.dash__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
}
.dash__badge--ok {
  background: #2f7d5f;
  color: #fff;
}
.dash__badge--warn {
  background: var(--coral-500);
  color: #fff;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 24px;
}
.panel h2 {
  font-size: 1.55rem;
  margin-bottom: 18px;
}
.panel h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.reg-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--sand-100);
}
.reg-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.reg-item__ref {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-800);
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--green-100);
  color: var(--green-700);
}
.tag--ok {
  background: #e3f2ea;
  color: #2f7d5f;
}
.tag--warn {
  background: #fdeeea;
  color: var(--coral-600);
}
.tag--gold {
  background: #faf0d8;
  color: #9a7420;
}

.reg-item__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  font-size: 14px;
}
.reg-item__meta dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}
.reg-item__meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.booking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.booking-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.booking-list li:last-child {
  border-bottom: 0;
}
.booking-list__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-800);
}
.booking-list__time {
  font-size: 13px;
  color: var(--coral-600);
  font-weight: 600;
}

/* ---------------- LEGAL / FAQ ---------------- */

.prose {
  max-width: 78ch;
}
.prose h2 {
  font-size: 1.8rem;
  margin-top: 40px;
}
.prose h3 {
  font-size: 1.3rem;
  margin-top: 28px;
}
.prose ul, .prose ol {
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 10px 13px;
  text-align: left;
}
.prose th {
  background: var(--sand-200);
  color: var(--green-800);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green-800);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--coral-500);
  font-family: var(--font-body);
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item__body {
  padding: 0 22px 20px;
  font-size: 15px;
}

/* ---------------- FOOTER ---------------- */

.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.62);
  padding: 72px 0 0;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.brand--footer .brand__mark {
  background: var(--sand-100);
  border-color: var(--coral-500);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.site-footer__col h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__col li {
  margin-bottom: 9px;
}
.site-footer__col a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.site-footer__col a:hover {
  color: var(--gold-200);
}
.site-footer__col p {
  font-size: 14px;
}
.site-footer__note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.site-footer__note strong {
  color: #fff;
}

.site-footer__bottom {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.site-footer__bottom p {
  margin: 0;
}
.site-footer__where {
  color: rgba(255, 255, 255, 0.42);
}

/* ---------------- FATTI (SEO / GEO) ---------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
}
.facts__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.facts__item dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: 6px;
}
.facts__item dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

/* ---------------- MAPPA ---------------- */

.section--map {
  background: var(--sand-200);
}

.map {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
.map__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  min-height: 340px;
}
.map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}
.map__info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.map__info h3 {
  margin-bottom: 8px;
}
.map__address {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 20px;
}
.map__list {
  margin: 0 0 22px;
  display: grid;
  gap: 14px;
}
.map__list dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: 2px;
}
.map__list dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
.map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.aside-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.aside-map iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
}

/* ---------------- CTA MOBILE ---------------- */

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 245, 236, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(16, 42, 35, 0.1);
  transform: translateY(110%);
  transition: transform 0.28s ease;
  visibility: hidden;
}
.mobile-cta.is-visible {
  transform: translateY(0);
  visibility: visible;
}
.mobile-cta .btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 14px;
}
.mobile-cta .btn--outline {
  border-color: var(--green-700);
  color: var(--green-800);
  background: transparent;
}

/* ---------------- REVEAL ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1080px) {
  .pillars__grid,
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__copy,
  .hero__visual {
    min-width: 0;
  }
  .hero__visual {
    max-width: 460px;
  }
  .form-wrap,
  .operatori,
  .beneficiary,
  .map,
  .dash {
    grid-template-columns: 1fr;
  }
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--green-800);
    padding: 12px 24px calc(24px + env(safe-area-inset-top));
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: -1;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.is-open {
    transform: translateY(0);
  }
  /* Il pannello del menu resta verde: i link devono restare leggibili
     anche a header scrollato (che ne cambierebbe altrimenti il colore). */
  .site-nav a,
  .site-header.is-scrolled .site-nav a {
    color: rgba(255, 255, 255, 0.9);
  }
  .site-nav a::after,
  .site-header.is-scrolled .site-nav a::after {
    background: var(--coral-500);
  }
  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 15px;
  }
  .nav-toggle {
    display: flex;
  }
  .site-header__actions .btn {
    display: none;
  }
  .hero__meta {
    gap: 18px;
  }
  .timeline::before {
    left: 12px;
  }
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 40px;
  }
  .timeline__time {
    text-align: left;
    font-size: 1.2rem;
  }
  .timeline__body {
    padding-left: 26px;
  }
  /* Area personale e form: campi a tutta larghezza */
  .field__input,
  .field__input input,
  .field__input textarea,
  .field__input select {
    font-size: 16px; /* evita l'auto-zoom di iOS */
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }
  .section {
    padding: 68px 0;
  }
  .pillars__grid,
  .cards--4,
  .choices,
  .form-grid,
  .site-footer__inner,
  .facts {
    grid-template-columns: 1fr;
  }
  .card-form {
    padding: 26px 20px;
  }
  .hero__countdown {
    margin-left: 0;
    grid-template-columns: repeat(2, 1fr);
  }
  .countdown__num {
    font-size: 26px;
  }
  .site-footer__bottom {
    flex-direction: column;
  }
  /* CTA fisso in basso */
  .mobile-cta {
    display: flex;
  }
  body {
    padding-bottom: 74px;
  }
  .site-footer__bottom {
    padding-bottom: 12px;
  }
  /* Testi e spaziature piu' comodi al pollice */
  .hero__actions .btn,
  .cta__actions .btn {
    flex: 1 1 100%;
  }
  .hero__title {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
  }
  .hero {
    padding: calc(var(--header-h) + 34px) 0 64px;
    min-height: auto;
  }
  .site-header__inner {
    gap: 12px;
  }
  .brand__mark {
    width: 38px;
    height: 38px;
  }
  .brand__text strong {
    font-size: 18px;
  }
  .nav-toggle {
    width: 44px;
    height: 44px;
  }
  .container {
    padding: 0 18px;
  }
  .site-footer {
    padding-bottom: 0;
  }
  .messages {
    left: 14px;
    right: 14px;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .brand__text em {
    display: none;
  }
  .hero__actions .btn {
    padding: 13px 18px;
    font-size: 13.5px;
  }
}

/* Touch target minimo 44px sui controlli interattivi */
@media (pointer: coarse) {
  .btn,
  .site-nav a,
  .nav-toggle,
  .faq-item summary,
  input[type="submit"] {
    min-height: 44px;
  }
  .faq-item summary {
    display: flex;
    align-items: center;
  }
  /* Le checkbox diventano piu' visibili e facili da toccare */
  .checkbox input {
    width: 22px;
    height: 22px;
  }
  .checkbox {
    padding: 16px;
  }
  .checkbox span {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
