/* ============================================================================
   Villa Silvia - site.css
   Palette: blu profondo istituzionale + verde acqua salute + crema/avorio
   Tipo: Fraunces (display, calda, con grazie) + Inter Tight (body)
   Tono: refined-minimalism, accessibile, rassicurante
   ============================================================================ */

:root {
  /* Palette */
  --vs-blue:        #0a3d62;
  --vs-blue-700:    #082f4b;
  --vs-blue-50:     #e7eff5;
  --vs-teal:        #14b8a6;
  --vs-teal-600:    #0d9488;
  --vs-cream:       #fdf6ec;
  --vs-cream-2:     #f7f1e6;
  --vs-ink:         #18242e;
  --vs-ink-soft:    #475560;
  --vs-line:        #e6dccc;
  --vs-line-soft:   #efe7d8;
  --vs-warning:     #b45309;
  --vs-error:       #b91c1c;
  --vs-ok:          #0f766e;

  /* Type */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter Tight', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container-w: 1200px;
  --container-narrow: 760px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10,61,98,.06), 0 1px 4px rgba(10,61,98,.04);
  --shadow-md: 0 4px 14px rgba(10,61,98,.08), 0 1px 4px rgba(10,61,98,.04);
  --shadow-lg: 0 24px 60px -20px rgba(10,61,98,.18);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--vs-ink);
  background: var(--vs-cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vs-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--vs-teal-600); }
button { font-family: inherit; cursor: pointer; }

h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144;
  color: var(--vs-blue-700);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: -.005em; }

p { margin: 0 0 1.1em; color: var(--vs-ink-soft); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--vs-blue); color: #fff; padding: 8px 14px; z-index: 9999;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 8px; }

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

/* ====================== HEADER ====================== */
.site-header {
  background: var(--vs-cream);
  border-bottom: 1px solid var(--vs-line);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.site-header__topbar {
  background: var(--vs-blue);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 0;
}
.site-header__topbar .container { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.site-header__topbar a { color: #fff; text-decoration: none; }
.site-header__topbar a:hover { color: var(--vs-teal); }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { opacity: .8; }

.site-header__main { padding: 18px 0; }
.site-header__main .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vs-blue) 0%, var(--vs-blue-700) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .02em;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.brand__mark::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(20,184,166,.4), transparent 60%);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--vs-blue-700);
}
.brand__text em { font-style: normal; font-size: 12px; color: var(--vs-ink-soft); margin-top: 2px; letter-spacing: .02em; text-transform: uppercase; }

/* Nav */
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.primary-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--vs-ink);
  border-radius: 8px;
  transition: all .15s ease;
}
.primary-nav a:hover { background: var(--vs-blue-50); color: var(--vs-blue); }
.primary-nav .cta {
  background: var(--vs-blue);
  color: #fff;
  padding: 10px 18px;
  margin-left: 8px;
}
.primary-nav .cta:hover { background: var(--vs-blue-700); color: #fff; }
.has-dropdown { position: relative; }
.has-dropdown > ul {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--vs-line);
  border-radius: var(--radius-sm);
  min-width: 280px;
  padding: 8px;
  box-shadow: var(--shadow-md);
  margin-top: 6px;
}
.has-dropdown:hover > ul,
.has-dropdown:focus-within > ul { display: flex; }
.has-dropdown > ul a { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--vs-line);
  background: transparent;
  border-radius: 8px;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--vs-blue); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--vs-cream);
    border-bottom: 1px solid var(--vs-line);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { padding: 14px 12px; border-radius: 0; border-bottom: 1px solid var(--vs-line-soft); }
  .has-dropdown > ul { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; display: flex; }
  .primary-nav .cta { margin: 12px 0 0; text-align: center; }
}

/* ====================== HERO ====================== */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 10vw, 120px);
  background: linear-gradient(180deg, var(--vs-cream) 0%, var(--vs-cream-2) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(20,184,166,.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(10,61,98,.08), transparent 60%);
  z-index: -1;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230a3d62' fill-opacity='0.025'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H20v-1.5z'/%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  opacity: .5;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--vs-teal-600);
  margin: 0 0 18px;
  padding: 6px 14px;
  background: rgba(20,184,166,.08);
  border-radius: 999px;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--vs-blue-700);
  margin: 0 0 28px;
  font-variation-settings: 'opsz' 144;
  max-width: 14ch;
}
.display em {
  font-style: italic;
  color: var(--vs-teal-600);
  font-variation-settings: 'opsz' 144;
}
.lede {
  max-width: 60ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--vs-ink-soft);
  margin: 0 0 36px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--vs-line);
  padding-top: 36px;
  max-width: 800px;
}
.hero__stats > div {
  padding: 0 24px 0 0;
  border-right: 1px solid var(--vs-line-soft);
}
.hero__stats > div:last-child { border-right: none; }
.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--vs-blue);
  font-weight: 500;
  letter-spacing: -.02em;
}
.hero__stats span { font-size: 13px; color: var(--vs-ink-soft); text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .hero__stats > div:nth-child(2) { border-right: none; }
}

/* ====================== BUTTONS ====================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--vs-blue);
  color: #fff;
  border-color: var(--vs-blue);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--vs-blue-700); border-color: var(--vs-blue-700); transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--vs-blue);
  border-color: var(--vs-blue);
}
.btn--ghost:hover { background: var(--vs-blue); color: #fff; }
.btn--large { padding: 17px 32px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 6px 14px; font-size: 13px; }

/* ====================== SECTIONS ====================== */
.aree {
  padding: clamp(80px, 12vw, 140px) 0;
  background: #fff;
}
.section-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-head--inverted { color: rgba(255,255,255,.9); }
.section-head--inverted h2 { color: #fff; }
.section-head--inverted .eyebrow { color: var(--vs-teal); background: rgba(20,184,166,.18); }
.section-head .eyebrow { display: inline-block; }
.section-lede { font-size: 17px; max-width: 60ch; margin: 12px auto 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr; gap: 20px; } }

.card {
  background: var(--vs-cream);
  border: 1px solid var(--vs-line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--vs-blue), var(--vs-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--vs-teal-600);
  letter-spacing: .1em;
  margin-bottom: 16px;
  font-weight: 600;
}
.card h3 { margin-bottom: 12px; }
.card h3 small { font-weight: 400; font-size: .8em; color: var(--vs-ink-soft); display: block; }
.card p { font-size: 15px; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--vs-blue);
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
  letter-spacing: .01em;
}
.card__link:hover { color: var(--vs-teal-600); gap: 10px; }

/* Valori (sfondo blu) */
.valori {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--vs-blue);
  color: rgba(255,255,255,.85);
  position: relative;
  overflow: hidden;
}
.valori::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(20,184,166,.15), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(255,255,255,.04), transparent 50%);
}
.valori .container { position: relative; }
.valori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
@media (max-width: 900px) { .valori-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .valori-grid { grid-template-columns: 1fr; } }
.valore {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 24px;
}
.valore h4 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 10px;
  font-variation-settings: 'opsz' 144;
}
.valore p { color: rgba(255,255,255,.7); font-size: 15px; }

/* News section */
.news-section {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--vs-cream);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--vs-line);
  transition: all .3s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-card__link { display: block; text-decoration: none; color: inherit; }
.news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--vs-cream-2);
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__media--placeholder {
  background: linear-gradient(135deg, var(--vs-blue-50), var(--vs-cream-2));
}
.news-card__body { padding: 26px 24px 28px; }
.news-card__body time { font-size: 13px; color: var(--vs-teal-600); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.news-card__body h3 { margin: 8px 0 10px; font-size: 1.2rem; }
.news-card__body p { font-size: 14px; margin: 0; }

.section-cta { text-align: center; margin-top: 60px; }

/* Contact strip */
.contact-strip {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--vs-teal) 0%, var(--vs-teal-600) 100%);
  color: #fff;
}
.contact-strip .container {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.contact-strip h2 { color: #fff; margin: 0 0 8px; }
.contact-strip p { color: rgba(255,255,255,.85); margin: 0; font-size: 17px; }
.contact-strip .btn--primary { background: #fff; color: var(--vs-teal-600); border-color: #fff; }
.contact-strip .btn--primary:hover { background: var(--vs-blue); color: #fff; border-color: var(--vs-blue); }

/* ====================== PAGE HERO ====================== */
.page-hero {
  background: linear-gradient(180deg, var(--vs-cream) 0%, var(--vs-cream-2) 100%);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--vs-line);
}
.page-hero h1 { margin: 12px 0 8px; }
.page-hero__lede { font-size: 18px; max-width: 60ch; }
.breadcrumb { font-size: 14px; color: var(--vs-ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--vs-ink-soft); }
.breadcrumb a:hover { color: var(--vs-blue); }
.breadcrumb span { color: var(--vs-blue); }

.page-body { padding: 60px 0 80px; background: #fff; }

/* ====================== PROSE (long-form text) ====================== */
.prose { font-size: 17px; line-height: 1.75; color: var(--vs-ink); }
.prose h2 { margin-top: 2.2em; margin-bottom: .6em; font-size: 1.8rem; }
.prose h3 { margin-top: 1.8em; margin-bottom: .5em; font-size: 1.35rem; }
.prose h4 { margin-top: 1.6em; margin-bottom: .4em; }
.prose p { margin-bottom: 1.2em; color: var(--vs-ink); }
.prose strong { color: var(--vs-blue-700); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--vs-teal-600); }
.prose a { color: var(--vs-blue); text-decoration: underline; text-decoration-color: var(--vs-teal); text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose blockquote {
  border-left: 4px solid var(--vs-teal);
  padding-left: 1.4em;
  margin: 1.6em 0;
  font-style: italic;
  color: var(--vs-ink-soft);
}

/* ====================== NEWS LIST + ARTICLE ====================== */
.news-list { padding: 60px 0 80px; background: #fff; }
.empty { text-align: center; padding: 60px 0; color: var(--vs-ink-soft); }

.pagination {
  margin-top: 60px;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  font-size: 14px;
  color: var(--vs-ink-soft);
}
.pagination a { color: var(--vs-blue); font-weight: 600; }

.news-article { background: #fff; }
.news-article__header { background: var(--vs-cream); padding: 60px 0 40px; }
.news-article__header h1 { margin: 16px 0 18px; max-width: 22ch; }
.news-article__lede { font-size: 19px; color: var(--vs-ink-soft); max-width: 62ch; }
.news-article__cover { margin: 0; max-width: 1100px; padding: 0 24px; margin: -20px auto 40px; }
.news-article__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.news-article__body { padding: 0 0 40px; }
.news-article__back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--vs-line); }

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 30px 0;
}
.news-gallery__item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.news-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-gallery__item:hover img { transform: scale(1.05); }

/* ====================== CONTATTI ====================== */
.contact-section { padding: 60px 0 100px; background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.info-card {
  background: var(--vs-cream);
  border: 1px solid var(--vs-line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 16px;
}
.info-card h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--vs-blue); font-family: var(--font-body); font-weight: 600; }
.info-card p, .info-card address { font-size: 14px; line-height: 1.6; color: var(--vs-ink); margin: 0; font-style: normal; }

.contact-form-wrap h2 { margin-bottom: 4px; }
.contact-form { margin-top: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--vs-blue-700); margin-bottom: 6px; letter-spacing: .01em; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1.5px solid var(--vs-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--vs-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--vs-teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,.15);
}
.form-field--check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; font-weight: 400; color: var(--vs-ink-soft); }
.form-field--check input { width: auto; margin-top: 3px; }
.form-field .err { color: var(--vs-error); display: block; margin-top: 4px; font-size: 13px; }
.form-field .hint { color: var(--vs-ink-soft); font-size: 12px; display: block; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 15px;
}
.alert--ok { background: rgba(15,118,110,.08); color: var(--vs-ok); border: 1px solid rgba(15,118,110,.2); }
.alert--err { background: rgba(185,28,28,.06); color: var(--vs-error); border: 1px solid rgba(185,28,28,.2); }

/* ====================== FOOTER ====================== */
.site-footer {
  background: var(--vs-blue-700);
  color: rgba(255,255,255,.7);
  padding: 70px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 50px;
  margin-bottom: 50px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text em { color: rgba(255,255,255,.55); }
.footer-tag { margin-top: 18px; line-height: 1.6; max-width: 30ch; }

.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--vs-teal); }
.site-footer address { font-style: normal; line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}
.footer-links a { margin: 0 8px; }

/* ====================== ERROR PAGES ====================== */
.error-page { padding: 120px 0; text-align: center; background: var(--vs-cream); min-height: 50vh; }
.error-page h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 16px 0 12px; }

/* ====================== COOKIE BANNER ====================== */
.vs-cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: #fff;
  border: 1px solid var(--vs-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
  z-index: 9000;
  max-width: 1100px;
  margin: 0 auto;
}
.vs-cookie-banner__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
@media (max-width: 800px) { .vs-cookie-banner__inner { grid-template-columns: 1fr; } }
.vs-cookie-banner strong { color: var(--vs-blue-700); font-size: 16px; display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; }
.vs-cookie-banner p { font-size: 13px; line-height: 1.5; margin: 0; color: var(--vs-ink-soft); }
.vs-cookie-banner a { color: var(--vs-blue); text-decoration: underline; }
.vs-cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vs-cookie-banner button {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--vs-line);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--vs-blue);
}
.vs-cookie-banner button:hover { border-color: var(--vs-blue); }
.vs-cookie-banner button.primary { background: var(--vs-blue); color: #fff; border-color: var(--vs-blue); }
.vs-cookie-banner button.primary:hover { background: var(--vs-blue-700); }

.vs-cookie-prefs {
  position: fixed; inset: 0;
  background: rgba(10,36,46,.6);
  z-index: 9100;
  display: grid;
  place-items: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.vs-cookie-prefs__panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.vs-cookie-prefs h3 { margin: 0 0 8px; }
.vs-pref { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--vs-line-soft); font-size: 14px; line-height: 1.5; cursor: pointer; }
.vs-pref:last-of-type { border-bottom: none; }
.vs-pref input { margin-top: 4px; }
.vs-cookie-prefs__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--vs-line); }
.vs-cookie-prefs__actions button {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--vs-line); background: #fff; color: var(--vs-blue); font-weight: 600; font-size: 14px;
}
.vs-cookie-prefs__actions .primary { background: var(--vs-blue); color: #fff; border-color: var(--vs-blue); }

/* ===== FIX cookie modale [hidden] ===== */
.vs-cookie-banner[hidden],
.vs-cookie-prefs[hidden] {
  display: none !important;
}

/* ===== FIX cookie modale [hidden] - 2026-04-07 ===== */
.vs-cookie-banner[hidden],
.vs-cookie-prefs[hidden] {
  display: none !important;
}

/* ============================================================================
   FIX news article + PhotoSwipe gallery (v3 - 2026-04-07)
   ============================================================================ */

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.news-article__header {
  background: var(--vs-cream);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--vs-line);
}
.news-article__header h1 {
  margin: 16px 0 0;
  max-width: 22ch;
}
.news-article__header .eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
}

.news-article__cover {
  margin: 0;
  padding: 0;
}
.news-article__cover > .container--wide {
  margin-top: -30px;
  margin-bottom: 50px;
}
.news-article__cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

.news-article__body {
  padding: 20px 0 40px;
}

.news-gallery-wrap {
  background: var(--vs-cream);
  padding: 60px 0 80px;
  margin-top: 40px;
  border-top: 1px solid var(--vs-line);
}
.news-gallery-title {
  text-align: center;
  margin-bottom: 36px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--vs-blue-700);
}

.pswp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .pswp-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .pswp-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.pswp-gallery__item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
  cursor: zoom-in;
  background: var(--vs-cream-2);
}
.pswp-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
  display: block;
}
.pswp-gallery__item:hover img { transform: scale(1.05); }
.pswp-gallery__item::after {
  content: '⤢';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  background: rgba(10,61,98,.85);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.pswp-gallery__item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.news-article__back {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--vs-line);
  text-align: center;
}
.news-article__back a {
  color: var(--vs-blue);
  font-weight: 600;
  font-size: 15px;
}

/* ============================================================================
   Loghi reali Villa Silvia (header + footer)  v5
   ============================================================================ */
.brand__logo {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 700px) {
  .brand__logo { height: 44px; }
}
.brand__logo--white {
  height: 64px;
  margin-bottom: 12px;
}

/* nascondi placeholder testuali se per qualche motivo riappaiono */
.brand__mark { display: none !important; }
.brand .brand__text { display: none !important; }

/* fix definitivo cover centratura — più specifico vince */
article.news-article > figure.news-article__cover {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
article.news-article > figure.news-article__cover > .container--wide {
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: -30px !important;
  margin-bottom: 50px !important;
  max-width: 1100px;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* ============================================================================
   COVER CENTERING BOMBPROOF v6 — funziona anche se il container è rotto
   ============================================================================ */
.news-article__cover {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: -30px 0 50px 0 !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}
.news-article__cover .container,
.news-article__cover .container--wide {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.news-article__cover img {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

/* ============================================================================
   Stacco netto header / contenuto (v7)
   ============================================================================ */

/* Ombra sotto l'header per separarlo dal page-hero */
.site-header {
  box-shadow: 0 1px 0 var(--vs-line), 0 8px 24px -16px rgba(10,61,98,.15);
  position: relative;
  z-index: 50;
}

/* Bordo inferiore sottile sotto l'header main bianco */
.site-header__main {
  border-bottom: 1px solid var(--vs-line);
}

/* Page hero (la fascia crema con titolo+breadcrumb): più spazio sopra/sotto */
.page-hero {
  padding-top: 56px;
  padding-bottom: 56px;
  position: relative;
}

/* Linea decorativa sottile sopra al contenuto del page-hero */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--vs-teal, #14b8a6);
  border-radius: 2px;
  margin-top: 24px;
}

/* ============================================================================
   MOBILE NAVIGATION v8 — top bar hidden, drawer slide-in, bottom nav fissa
   ============================================================================ */

/* --- Mobile breakpoint --- */
@media (max-width: 768px) {

  /* Nascondi top bar contatti su mobile (occupava 1/3 schermo) */
  .site-header__topbar {
    display: none !important;
  }

  /* Header main: padding compatto mobile */
  .site-header__main {
    padding: 12px 0;
  }
  .site-header__main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  /* Logo header più piccolo */
  .brand__logo { height: 40px !important; }

  /* Nascondi nav desktop su mobile */
  .site-header__main .nav-primary,
  .site-header__main .header-cta {
    display: none !important;
  }

  /* Mostra hamburger */
  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--vs-line);
    background: transparent;
    border-radius: 8px;
    color: var(--vs-blue-700);
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle::before {
    content: '';
    width: 18px;
    height: 12px;
    background:
      linear-gradient(currentColor, currentColor) top/100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) bottom/100% 2px no-repeat;
  }

  /* Padding sul body per non coprire con bottom nav */
  body {
    padding-bottom: 70px !important;
  }

  /* Riduci padding hero per mobile */
  .page-hero {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}

/* Nascondi hamburger e drawer/bottom nav su desktop */
@media (min-width: 769px) {
  .nav-toggle { display: none !important; }
  .mobile-drawer { display: none !important; }
  .bottom-nav { display: none !important; }
}

/* ===== Mobile Drawer ===== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9000;
}
.mobile-drawer[hidden] { display: none !important; }

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,61,98,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-drawer.is-open .mobile-drawer__backdrop { opacity: 1; }

.mobile-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(85vw, 360px);
  background: var(--vs-cream);
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  box-shadow: -8px 0 32px rgba(10,61,98,.2);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  overflow-y: auto;
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }

.mobile-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--vs-line);
  margin-bottom: 20px;
}
.mobile-drawer__logo { height: 40px; }
.mobile-drawer__close {
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid var(--vs-line);
  border-radius: 8px;
  color: var(--vs-blue-700);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.mobile-drawer__nav a {
  padding: 14px 12px;
  border-radius: 10px;
  color: var(--vs-blue-700);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.mobile-drawer__nav a:hover,
.mobile-drawer__nav a:active {
  background: var(--vs-cream-2, #f5ead4);
  transform: translateX(4px);
}

.mobile-drawer__contacts {
  padding: 20px 0;
  border-top: 1px solid var(--vs-line);
  border-bottom: 1px solid var(--vs-line);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-drawer__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--vs-blue-700);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.mobile-drawer__contact svg { color: var(--vs-teal, #14b8a6); flex-shrink: 0; }
.mobile-drawer__address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--vs-blue-700);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}
.mobile-drawer__address svg { color: var(--vs-teal, #14b8a6); flex-shrink: 0; margin-top: 2px; }

.mobile-drawer__cta {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--vs-line);
  display: flex;
  z-index: 8000;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(10,61,98,.08);
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--vs-blue-700);
  font-size: 11px;
  font-weight: 600;
  position: relative;
  transition: color .25s ease, transform .25s ease;
  opacity: .65;
}
.bottom-nav__item svg {
  width: 22px;
  height: 22px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.bottom-nav__item:hover,
.bottom-nav__item:active {
  opacity: 1;
}
.bottom-nav__item:active svg {
  transform: scale(.9);
}
.bottom-nav__item.is-active {
  opacity: 1;
  color: var(--vs-teal, #14b8a6);
}
.bottom-nav__item.is-active svg {
  transform: translateY(-2px) scale(1.08);
}
.bottom-nav__item.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--vs-teal, #14b8a6);
  border-radius: 0 0 3px 3px;
}

/* CTA "Chiama" leggermente accentuato */
.bottom-nav__item[data-nav="call"] svg {
  color: var(--vs-teal, #14b8a6);
}

/* ============================================================================
   MOBILE NAV v9 — bottom-sheet drawer + 4 voci bottom nav (no hamburger header)
   ============================================================================ */

/* RESET dell'hamburger header: lo nascondo del tutto su mobile, perché ora il
   menu sta sulla bottom nav. Annullo anche le mie ::before fasulle che creavano
   linee in eccesso. */
@media (max-width: 768px) {

  /* Nascondi top bar contatti su mobile */
  .site-header__topbar { display: none !important; }

  /* Header compatto + nascondi menu desktop e hamburger */
  .site-header__main { padding: 14px 0 !important; }
  .site-header__main .container {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-header__main .nav-primary,
  .site-header__main .header-cta,
  .site-header__main .nav-toggle {
    display: none !important;
  }
  .nav-toggle::before { content: none !important; }

  .brand__logo { height: 38px !important; }

  /* Padding bottom per non coprire con la bottom-nav (60px nav + safe area) */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)) !important;
  }

  .page-hero { padding-top: 28px !important; padding-bottom: 28px !important; }
}

/* Su desktop nascondi tutto il sistema mobile */
@media (min-width: 769px) {
  .bnav, .bsheet { display: none !important; }
}

/* ============================================================================
   BOTTOM NAVIGATION (4 voci)
   ============================================================================ */
.bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--vs-line);
  display: flex;
  z-index: 8000;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -6px 24px rgba(10,61,98,.08);
}
.bnav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px 8px;
  text-decoration: none;
  color: var(--vs-blue-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: color .25s ease, transform .25s ease;
  opacity: .6;
}
.bnav__item svg {
  width: 24px;
  height: 24px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.bnav__item:hover, .bnav__item:active { opacity: 1; }
.bnav__item:active svg { transform: scale(.88); }
.bnav__item.is-active {
  opacity: 1;
  color: var(--vs-teal, #14b8a6);
}
.bnav__item.is-active svg {
  transform: translateY(-2px);
}
.bnav__item.is-active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--vs-teal, #14b8a6);
  border-radius: 0 0 4px 4px;
}

/* Menu button (sempre evidenziato leggero) */
.bnav__item--menu {
  color: var(--vs-blue-700);
  opacity: .85;
}
.bnav__item--menu[aria-expanded="true"] {
  opacity: 1;
  color: var(--vs-teal, #14b8a6);
}
.bnav__item--menu[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

/* ============================================================================
   BOTTOM SHEET DRAWER
   ============================================================================ */
.bsheet {
  position: fixed;
  inset: 0;
  z-index: 9000;
}
.bsheet[hidden] { display: none !important; }

.bsheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,61,98,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .32s ease;
}
.bsheet.is-open .bsheet__backdrop { opacity: 1; }

.bsheet__panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--vs-cream);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -16px 40px rgba(10,61,98,.25);
  transform: translateY(100%);
  transition: transform .42s cubic-bezier(.22,.61,.36,1);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bsheet.is-open .bsheet__panel { transform: translateY(0); }

.bsheet__handle {
  display: block;
  width: 48px;
  height: 5px;
  background: var(--vs-line);
  border-radius: 3px;
  border: 0;
  margin: 12px auto 4px;
  cursor: pointer;
  padding: 0;
}

.bsheet__inner {
  padding: 16px 22px calc(28px + env(safe-area-inset-bottom, 0));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bsheet__nav {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bsheet__nav li { margin: 0; }
.bsheet__nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: transparent;
  border-radius: 16px;
  color: var(--vs-blue-700);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background .22s ease, transform .18s ease;
  border: 1px solid transparent;
}
.bsheet__nav a:hover,
.bsheet__nav a:active {
  background: rgba(20,184,166,.08);
  border-color: rgba(20,184,166,.18);
  transform: translateX(3px);
}
.bsheet__nav-icon {
  font-size: 20px;
  width: 28px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.bsheet__cta {
  width: 100%;
  text-align: center;
  display: block;
  font-size: 16px;
  padding: 16px;
  border-radius: 14px;
}

/* ============================================================================
   FONT TWEAKS v10 — Fraunces lining numerals nei titoli
   ============================================================================ */

/* Numeri tabular allineati per tutti i titoli display Fraunces */
h1, h2, h3, .news-card h3, .news-article__header h1, .eyebrow, time {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1, "kern" 1;
}

/* In più: nelle date (eyebrow, time, breadcrumb) usa direttamente Inter Tight
   che è già il font body, super leggibile per i numeri */
.eyebrow, time, .news-article__header .eyebrow {
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif !important;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: .08em;
}

/* News card title: lasciamo Fraunces ma con lining nums */
.news-card h3 {
  font-feature-settings: "lnum" 1, "kern" 1;
}

/* ============================================================================
   DM Serif Display setup v12 — display-only font, numeri lining nativi
   ============================================================================ */
:root {
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
}

h1, h2, h3, .news-card h3, .news-article__header h1 {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-weight: 400 !important;  /* DM Serif Display ha solo regular */
  letter-spacing: -0.005em;
  line-height: 1.15;
}

/* Le date restano Inter Tight per max leggibilità */
.eyebrow, time {
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif !important;
}

/* ============================================================================
   FIX hero h1 width — non andare a capo subito (v13)
   ============================================================================ */

/* Lascia respirare l'h1 della home, max-width molto più ampio */
.hero h1,
.hero__title,
.page-hero h1 {
  max-width: none !important;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem) !important;
  line-height: 1.1 !important;
}

/* Solo quando lo schermo è davvero stretto, allora va a capo */
@media (max-width: 640px) {
  .hero h1, .hero__title, .page-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }
}

/* ============================================================================
   CONTACT FORM AJAX (modal + field errors + loading) v14
   ============================================================================ */

.field { position: relative; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
}
.field-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-weight: 500;
}
.field-error::before {
  content: '⚠';
  flex-shrink: 0;
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .75;
}
.btn.is-loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  animation: vs-spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes vs-spin {
  to { transform: rotate(360deg); }
}

/* ===== Modal contatto ===== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 24px;
}
.contact-modal[hidden] { display: none !important; }

.contact-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,61,98,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .28s ease;
}
.contact-modal.is-open::before { opacity: 1; }

.contact-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(10,61,98,.32);
  text-align: center;
  transform: scale(.92) translateY(20px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
.contact-modal.is-open .contact-modal__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.contact-modal__icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.contact-modal__icon svg {
  width: 38px; height: 38px;
}
.contact-modal[data-type="success"] .contact-modal__icon {
  background: #d1fae5;
  color: #059669;
}
.contact-modal[data-type="error"] .contact-modal__icon {
  background: #fee2e2;
  color: #dc2626;
}

.contact-modal__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--vs-blue-700, #0a3d62);
  font-weight: 400;
  line-height: 1.2;
}
.contact-modal__text {
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.contact-modal__btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--vs-blue-700, #0a3d62);
  color: #fff;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease, transform .15s ease;
}
.contact-modal__btn:hover {
  background: var(--vs-blue, #1e3a6e);
  transform: translateY(-1px);
}

/* ===== adatta field-error al markup .form-field esistente ===== */
.form-field { position: relative; }
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
}
.form-field.has-error label { color: #dc2626; }

/* ============================================================================
   CONTACT PAGE v15 — card layout mobile-first
   ============================================================================ */

/* Nascondi honeypot anti-bot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-section {
  padding: 40px 0 80px;
  background: var(--vs-cream, #fdf6ec);
}

.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
  }
}

/* ===== Info card ===== */
.contact-info {
  background: var(--vs-blue-700, #0a3d62);
  color: #fff;
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 16px 40px rgba(10,61,98,.18);
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.22) 0%, transparent 70%);
  pointer-events: none;
}
.contact-info h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
  position: relative;
}
.contact-info__lede {
  margin: 0 0 28px;
  opacity: .85;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}
.contact-info__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.contact-info__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
}
.contact-info__list svg {
  flex-shrink: 0;
  color: var(--vs-teal, #14b8a6);
  margin-top: 2px;
}
.contact-info__list strong {
  display: block;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--vs-teal, #14b8a6);
  margin-bottom: 3px;
}
.contact-info__list a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.35);
}
.contact-info__list a:hover {
  border-bottom-color: #fff;
}
.contact-info__list small {
  opacity: .7;
  font-size: 12px;
}

/* ===== Form wrap card ===== */
.contact-form-wrap {
  background: #fff;
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 16px 40px rgba(10,61,98,.08);
  border: 1px solid var(--vs-line, #e8e3d6);
}
.contact-form-wrap h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--vs-blue-700, #0a3d62);
}
.contact-form__lede {
  color: #64748b;
  margin: 0 0 24px;
  font-size: 14px;
}

/* ===== Form fields ===== */
.contact-form .form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  .contact-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form .form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.contact-form label {
  font-weight: 600;
  font-size: 13px;
  color: var(--vs-blue-700, #0a3d62);
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--vs-line, #e8e3d6);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fafaf7;
  color: var(--vs-blue-700, #0a3d62);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--vs-teal, #14b8a6);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20,184,166,.15);
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

.contact-form .form-field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 20px;
}
.contact-form .form-field--check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  margin: 0;
  line-height: 1.5;
}
.contact-form .form-field--check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--vs-teal, #14b8a6);
  margin-top: 1px;
}
.contact-form .form-field--check a {
  color: var(--vs-teal, #14b8a6);
  text-decoration: underline;
}

.contact-form .form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-form .form-actions .btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
}
.contact-form .form-note {
  color: #94a3b8;
  font-size: 12px;
}

/* Alert box */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid;
}
.alert--success {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}
.alert--error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

/* ===== Breadcrumb hero page ===== */
.page-hero {
  background: var(--vs-cream, #fdf6ec);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--vs-line, #e8e3d6);
}
.page-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 10px;
  color: var(--vs-blue-700, #0a3d62);
}
.page-hero__lede {
  color: #64748b;
  font-size: 16px;
  max-width: 65ch;
  margin: 0;
}
.breadcrumb {
  font-size: 13px;
  color: #64748b;
}
.breadcrumb a {
  color: var(--vs-blue-700, #0a3d62);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================================================
   FIX footer contrast — testi più leggibili sul blu scuro (v16)
   ============================================================================ */

/* Tutti i testi del footer con contrasto migliore */
.site-footer {
  color: rgba(255,255,255,.92);
}
.site-footer p,
.site-footer li,
.site-footer a,
.site-footer small {
  color: rgba(255,255,255,.85) !important;
}
.site-footer h4 {
  color: #fff !important;
  opacity: 1;
}
.site-footer a {
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer a:hover {
  color: var(--vs-teal, #14b8a6) !important;
}
.site-footer .footer-col--brand p {
  color: rgba(255,255,255,.8) !important;
  line-height: 1.6;
}

/* Bottom bar legal */
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px;
  padding-top: 24px;
}
.site-footer .footer-bottom small,
.site-footer .footer-bottom a {
  color: rgba(255,255,255,.7) !important;
  font-size: 12px;
  line-height: 1.6;
}

/* ============================================================================
   FIX contrast fine-tuning v17 — contact info card + footer headings
   ============================================================================ */

/* Info card contatti: lede più leggibile */
.contact-info__lede {
  color: rgba(255,255,255,.78) !important;
  font-size: 15px !important;
}

/* Footer headings: un filo meno bianco, più raffinati */
.site-footer h4 {
  color: rgba(255,255,255,.92) !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

/* ============================================================================
   PDF DOWNLOAD CARD (Carta dei Servizi) v18
   ============================================================================ */
.pdf-download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--vs-blue-700, #0a3d62) 0%, var(--vs-blue, #1e3a6e) 100%);
  color: #fff;
  padding: 24px 28px;
  border-radius: 18px;
  margin: 40px 0 20px;
  box-shadow: 0 16px 40px rgba(10,61,98,.18);
  position: relative;
  overflow: hidden;
}
.pdf-download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.18) 0%, transparent 70%);
  pointer-events: none;
}
.pdf-download-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(20,184,166,.2);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--vs-teal, #14b8a6);
  position: relative;
}
.pdf-download-card__icon svg {
  width: 28px;
  height: 28px;
}
.pdf-download-card__body {
  flex: 1;
  min-width: 0;
  position: relative;
}
.pdf-download-card__body h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 4px;
  color: #fff;
  line-height: 1.2;
}
.pdf-download-card__body p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}
.pdf-download-card__btn {
  flex-shrink: 0;
  background: var(--vs-teal, #14b8a6) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.pdf-download-card__btn:hover {
  background: #0d9488 !important;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .pdf-download-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .pdf-download-card__btn {
    width: 100%;
  }
}

/* ============================================================================
   BOTTOM NAV — testi lunghi adattati v18
   ============================================================================ */
.bnav__item {
  font-size: 10px !important;
  padding: 10px 2px 8px !important;
  gap: 3px !important;
}
.bnav__item span {
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  hyphens: auto;
}
.bnav__item svg {
  width: 22px !important;
  height: 22px !important;
}

/* ============================================================================
   FIX page-hero & body cards v19 — niente più verde, solo blu istituzionale
   ============================================================================ */

/* RIMUOVI la linea verde decorativa sopra il page-hero */
.page-hero::before {
  display: none !important;
  content: none !important;
}

/* Page hero pulito, niente bordi extra */
.page-hero {
  padding: 56px 0 48px;
  background: var(--vs-cream, #fdf6ec);
  border-bottom: 1px solid rgba(10,61,98,.08);
  position: relative;
}

/* Page body: card più elegante con accent blu laterale */
.page-body {
  padding: 60px 0 80px;
  background: #fff;
}

.page-body .container--narrow {
  position: relative;
}

.page-body .prose {
  background: #fff;
  padding: 48px 56px;
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(10,61,98,.04),
    0 12px 32px -16px rgba(10,61,98,.18),
    0 0 0 1px rgba(10,61,98,.06);
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}

/* Accent bar laterale blu */
.page-body .prose::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--vs-blue-700, #0a3d62) 0%, var(--vs-blue, #1e3a6e) 100%);
  border-radius: 18px 0 0 18px;
}

.page-body .prose:hover {
  box-shadow:
    0 2px 0 rgba(10,61,98,.05),
    0 20px 48px -16px rgba(10,61,98,.22),
    0 0 0 1px rgba(10,61,98,.08);
}

/* Tipografia interna prose */
.page-body .prose p {
  font-size: 16.5px;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 18px;
}
.page-body .prose p:last-child {
  margin-bottom: 0;
}
.page-body .prose strong {
  color: var(--vs-blue-700, #0a3d62);
  font-weight: 700;
}
.page-body .prose ul, .page-body .prose ol {
  padding-left: 22px;
  margin: 18px 0;
}
.page-body .prose li {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 6px;
}
.page-body .prose li::marker {
  color: var(--vs-blue-700, #0a3d62);
}
.page-body .prose h2, .page-body .prose h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--vs-blue-700, #0a3d62);
  margin: 32px 0 14px;
  font-weight: 400;
}
.page-body .prose h2 { font-size: 28px; }
.page-body .prose h3 { font-size: 22px; }
.page-body .prose a {
  color: var(--vs-blue-700, #0a3d62);
  text-decoration: underline;
  text-decoration-color: rgba(10,61,98,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.page-body .prose a:hover {
  text-decoration-color: var(--vs-blue-700, #0a3d62);
}

@media (max-width: 720px) {
  .page-body { padding: 40px 0 60px; }
  .page-body .prose {
    padding: 32px 24px 32px 32px;
    border-radius: 14px;
  }
  .page-body .prose::before { width: 3px; }
}
/* ============================================================================
   Villa Silvia — Hero figure + galleria nelle pagine istituzionali
   Append a site.css (alla fine del file). Usa variabili --vs-* esistenti.
   v1 — 2026-04-08
   ============================================================================ */

/* Figure hero della pagina: immagine grande in cima al body */
.prose .page-hero-figure {
  margin: 0 0 2.4em;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 20px 50px -20px rgba(10, 61, 98, .25));
  position: relative;
  background: var(--vs-cream-2);
}
.prose .page-hero-figure img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}
.prose .page-hero-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 32px 22px;
  background: linear-gradient(to top, rgba(10, 61, 98, .85) 0%, rgba(10, 61, 98, 0) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .2px;
}

/* Sezione galleria dentro le pagine */
.prose .page-gallery-section {
  margin: 3em 0 2em;
  padding-top: 2em;
  border-top: 1px solid var(--vs-line);
}
.prose .page-gallery-section > h3 {
  margin-top: 0 !important;
  margin-bottom: 1.2em !important;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--vs-blue-700);
}

/* Riusa la .pswp-gallery esistente, ma assicura margine zero dentro prose */
.prose .pswp-gallery {
  margin: 0;
  padding: 0;
}
.prose .pswp-gallery a {
  text-decoration: none;
  border-bottom: none;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .prose .page-hero-figure img { max-height: 320px; }
  .prose .page-hero-figure figcaption {
    padding: 20px 18px 16px;
    font-size: 14px;
  }
}

/* ============================================================================
   Villa Silvia — PROJECTS section
   Append a public_html/assets/css/site.css
   v1 — 2026-04-08
   ============================================================================ */

/* ---------------- Lista progetti (/progetti) ------------------------------- */

.projects-list { padding: 60px 0 80px; }

.projects-list__empty {
  text-align: center;
  color: var(--vs-ink-soft);
  padding: 60px 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px -8px rgba(10, 61, 98, .15);
  border: 1px solid var(--vs-line-soft);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(10, 61, 98, .25);
}
.project-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--project-accent);
  z-index: 2;
}
.project-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--vs-cream-2);
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project-card:hover .project-card__media img { transform: scale(1.05); }

.project-card__logo {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 96px; height: 96px;
  background: rgba(255, 255, 255, .92);
  border-radius: 50%;
  padding: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  backdrop-filter: blur(6px);
}
.project-card__logo img { max-width: 100%; max-height: 100%; }

.project-card__body { padding: 28px 32px 32px; }
.project-card__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--project-accent);
  margin-bottom: 8px;
}
.project-card__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--vs-blue-700);
  margin: 0 0 10px;
  line-height: 1.15;
}
.project-card__tagline {
  font-style: italic;
  color: var(--vs-ink);
  margin: 0 0 14px;
  font-size: 1rem;
}
.project-card__excerpt {
  color: var(--vs-ink-soft);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 20px;
}
.project-card__cta {
  display: inline-block;
  font-weight: 600;
  color: var(--project-accent);
  font-size: .95rem;
  transition: transform .25s ease;
}
.project-card:hover .project-card__cta { transform: translateX(4px); }


/* ---------------- Dettaglio progetto (/progetti/{slug}) -------------------- */

.project-detail {
  --project-accent: var(--vs-blue);
}

.project-hero {
  position: relative;
  min-height: 480px;
  background: var(--project-accent);
  overflow: hidden;
}
.project-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.project-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.project-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--project-accent) 85%, transparent) 0%,
    color-mix(in srgb, var(--project-accent) 60%, transparent) 50%,
    rgba(0, 0, 0, .4) 100%
  );
}
/* Fallback per browser senza color-mix */
@supports not (background: color-mix(in srgb, red, blue)) {
  .project-hero__bg::after {
    background: linear-gradient(135deg, rgba(10, 61, 98, .85) 0%, rgba(10, 61, 98, .55) 100%);
  }
}

.project-hero__overlay {
  position: relative;
  z-index: 1;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  color: #fff;
}

.project-hero .breadcrumb--light {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 28px;
}
.project-hero .breadcrumb--light a {
  color: rgba(255, 255, 255, .95);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-hero .breadcrumb--light a:hover { color: #fff; }

.project-hero__logo {
  background: rgba(255, 255, 255, .95);
  display: inline-block;
  padding: 24px 32px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .25);
}
.project-hero__logo img {
  max-width: 280px;
  max-height: 120px;
  display: block;
}

.project-hero__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  margin: 0 0 16px;
  color: #fff;
}

.project-hero__subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .95);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.project-hero__tagline {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  margin: 0;
  max-width: 760px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .92);
}

/* Decorazione opzionale (es. il colibrì) */
.project-decoration {
  text-align: center;
  margin: -40px auto 0;
  position: relative;
  z-index: 5;
  max-width: 200px;
}
.project-decoration img {
  width: 100%; height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .15));
}

/* Body del progetto */
.project-body {
  padding: 60px 0 80px;
}
.project-prose .lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--vs-blue-700);
  font-weight: 500;
  border-left: 4px solid var(--project-accent);
  padding-left: 20px;
  margin: 0 0 32px;
}
.project-prose h2 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--project-accent);
  margin-top: 2.4em;
  margin-bottom: .6em;
}
.project-prose h3 {
  color: var(--vs-blue-700);
  margin-top: 1.8em;
}
.project-prose h4 {
  color: var(--project-accent);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 1.5em;
  margin-bottom: .4em;
}

/* Sezione favola (riquadro evidenziato) */
.ortart-fable {
  background: var(--vs-cream-2);
  border-radius: var(--radius);
  padding: 40px;
  margin: 48px 0;
  border-left: 5px solid var(--project-accent);
}
.ortart-fable h2 {
  margin-top: 0 !important;
  text-align: center;
}
.ortart-fable__intro {
  text-align: center;
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 28px;
  color: var(--vs-blue-700);
}
.ortart-fable__story p {
  text-align: justify;
  hyphens: auto;
}
.ortart-fable__moral {
  border-top: 2px solid var(--project-accent);
  padding-top: 20px;
  margin-top: 24px !important;
  font-size: 1.05rem;
  color: var(--vs-blue-700);
}

/* I 3 percorsi */
.ortart-paths { margin-top: 56px; }
.ortart-path {
  background: #fff;
  border: 1px solid var(--vs-line-soft);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 24px;
  border-top: 4px solid var(--project-accent);
  box-shadow: 0 4px 14px -6px rgba(10, 61, 98, .12);
}
.ortart-path h3 {
  margin-top: 0 !important;
  font-size: 1.5rem;
}

/* Partner */
.project-partner {
  margin: 48px 0 0;
  padding: 28px 32px;
  background: var(--vs-blue-50);
  border-radius: var(--radius-sm);
  text-align: center;
}
.project-partner h3 {
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--vs-ink-soft) !important;
  margin: 0 0 8px !important;
  font-weight: 600;
}
.project-partner p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--vs-blue-700);
  font-weight: 500;
}

/* Galleria progetto */
.project-gallery-section {
  background: var(--vs-cream-2);
  padding: 60px 0 80px;
  border-top: 1px solid var(--vs-line);
}
.project-gallery-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  color: var(--vs-blue-700);
  margin: 0 0 40px;
  font-weight: 500;
}

/* CTA finale */
.project-cta {
  background: var(--project-accent);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.project-cta h2 {
  font-family: "Fraunces", Georgia, serif;
  color: #fff;
  margin: 0 0 12px;
}
.project-cta p {
  color: rgba(255, 255, 255, .9);
  margin: 0 0 28px;
}
.project-cta .btn--primary {
  background: #fff;
  color: var(--project-accent);
  margin-right: 12px;
}
.project-cta .btn--primary:hover {
  background: var(--vs-cream);
  color: var(--project-accent);
}
.project-cta .btn--ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .7);
  color: #fff;
}
.project-cta .btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}

/* Mobile */
@media (max-width: 720px) {
  .projects-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-card__body { padding: 24px; }
  .project-card__title { font-size: 1.6rem; }
  .project-hero { min-height: 380px; }
  .project-hero__overlay { min-height: 380px; padding: 60px 0 40px; }
  .project-hero__logo { padding: 18px 24px; }
  .project-hero__logo img { max-width: 200px; max-height: 90px; }
  .ortart-fable { padding: 28px 20px; }
  .ortart-path { padding: 24px 22px; }
  .project-cta .btn--ghost { margin-top: 12px; display: inline-block; }
}


/* === ORTART HERO FIX v3 === */
/* Hero boxato in un container narrow con card e ombra */
.project-detail .project-hero {
  min-height: auto;
  background: transparent;
  padding: 40px 0 60px;
  overflow: visible;
  position: relative;
}
.project-detail .project-hero__bg {
  position: relative;
  inset: auto;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(10, 61, 98, .35);
  z-index: 1;
}
.project-detail .project-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-detail .project-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 45%,
    rgba(0,0,0,.35) 75%,
    rgba(0,0,0,.7) 100%
  );
}

/* Overlay con breadcrumb in alto + tagline in basso */
.project-detail .project-hero__overlay {
  position: absolute;
  left: 50%;
  top: 40px;
  bottom: 60px;
  transform: translateX(-50%);
  max-width: 1100px;
  width: calc(100% - 40px);
  min-height: 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  z-index: 2;
  pointer-events: none;
}
.project-detail .project-hero__overlay > .container {
  max-width: 100%;
  padding: 0 32px 32px;
  width: 100%;
  pointer-events: auto;
}
.project-detail .project-hero__overlay .breadcrumb--light {
  position: absolute;
  top: 18px;
  left: 28px;
  margin: 0;
  font-size: 13px;
  background: rgba(10, 61, 98, .72);
  padding: 7px 16px;
  border-radius: 20px;
  display: inline-flex;
  gap: 6px;
  backdrop-filter: blur(6px);
  color: #fff;
}
.project-detail .project-hero__overlay .breadcrumb--light a {
  color: #fff;
  text-decoration: none;
}
.project-detail .project-hero__overlay .breadcrumb--light a:hover {
  text-decoration: underline;
}

/* Logo nascosto (useremo il badge sotto) */
.project-detail .project-hero__logo { display: none; }

/* Sottotitolo nascosto in hero */
.project-detail .project-hero__subtitle { display: none; }

/* Tagline dentro l'hero in basso */
.project-detail .project-hero__tagline {
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  max-width: 720px;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
  font-style: italic;
  font-family: "Fraunces", Georgia, serif;
}

/* === BADGE CIRCOLARE CON LOGO === */
/* Riusa .project-decoration che in HTML contiene l'immagine
   Ma cambiamo src logicamente: vogliamo il LOGO dentro un cerchio */
.project-detail .project-decoration {
  position: absolute;
  right: calc(50% - 550px + 30px);
  bottom: 10px;
  width: 160px;
  height: 160px;
  margin: 0;
  z-index: 5;
  pointer-events: none;
  background: rgba(255, 255, 255, .92);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  box-shadow:
    0 12px 40px rgba(10, 61, 98, .35),
    0 0 0 6px rgba(255, 255, 255, .35);
  display: grid;
  place-items: center;
  padding: 22px;
  transition: transform .4s ease;
}
.project-detail .project-decoration:hover {
  transform: scale(1.04) rotate(-2deg);
}
.project-detail .project-decoration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  transform: none;
  display: block;
}

/* Body */
.project-detail .project-body {
  padding-top: 80px;
}

/* Mobile */
@media (max-width: 900px) {
  .project-detail .project-hero { padding: 24px 0 40px; }
  .project-detail .project-hero__bg {
    max-width: calc(100% - 24px);
    aspect-ratio: 4 / 3;
  }
  .project-detail .project-hero__overlay {
    top: 24px;
    bottom: 40px;
    width: calc(100% - 24px);
  }
  .project-detail .project-hero__overlay > .container {
    padding: 0 20px 24px;
  }
  .project-detail .project-hero__overlay .breadcrumb--light {
    top: 12px;
    left: 16px;
    font-size: 11px;
    padding: 5px 12px;
  }
  .project-detail .project-decoration {
    right: 20px;
    bottom: 10px;
    width: 105px;
    height: 105px;
    padding: 14px;
    box-shadow:
      0 8px 24px rgba(10, 61, 98, .3),
      0 0 0 4px rgba(255, 255, 255, .35);
  }
  .project-detail .project-body { padding-top: 60px; }
  .project-detail .project-hero__tagline {
    max-width: calc(100% - 120px);
  }
}
@media (max-width: 480px) {
  .project-detail .project-decoration {
    width: 85px;
    height: 85px;
    padding: 10px;
  }
  .project-detail .project-hero__tagline {
    max-width: calc(100% - 100px);
    font-size: .95rem;
  }
}
/* === END ORTART HERO FIX ===*/

/* === GIARDINO DI SILVIA STYLES v1 === */
.giardino-intro .lead {
  text-align: center;
  font-size: 1.3rem !important;
  max-width: 720px;
  margin: 0 auto 48px !important;
  border-left: none !important;
  padding-left: 0 !important;
  color: #6d4c33 !important;
}
.giardino-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0;
}
.giardino-step {
  background: #faf6f1;
  border-radius: 12px;
  padding: 32px 28px;
  border-top: 4px solid #6d4c33;
  position: relative;
  box-shadow: 0 4px 14px -6px rgba(109, 76, 51, .2);
}
.giardino-step__num {
  position: absolute;
  top: -18px;
  right: 24px;
  background: #6d4c33;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(109, 76, 51, .35);
}
.giardino-step h3 {
  margin-top: 0 !important;
  color: #6d4c33 !important;
  font-size: 1.3rem !important;
}
.giardino-step p { margin: 0; font-size: .95rem; }

.giardino-quote {
  border-left: 5px solid #6d4c33;
  background: #faf6f1;
  padding: 32px 40px;
  margin: 48px 0;
  border-radius: 0 12px 12px 0;
}
.giardino-quote p {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #6d4c33;
  margin: 0;
  line-height: 1.5;
}

.giardino-visit {
  background: #6d4c33;
  color: #faf6f1;
  padding: 40px 44px;
  border-radius: 12px;
  margin-top: 48px;
}
.giardino-visit h2 {
  color: #fff !important;
  margin-top: 0 !important;
}
.giardino-visit p {
  color: rgba(255, 255, 255, .9);
  margin-bottom: 0;
}
.giardino-visit strong { color: #fff; }

@media (max-width: 720px) {
  .giardino-steps { grid-template-columns: 1fr; gap: 36px; }
  .giardino-quote { padding: 24px 24px 24px 30px; }
  .giardino-visit { padding: 28px 24px; }
}
/* === END GIARDINO STYLES ===*/

/* === BADGE + BREADCRUMB FIX v1 === */
/* Breadcrumb: testo ultimo (non link) deve essere BIANCO leggibile */
.project-detail .project-hero__overlay .breadcrumb--light,
.project-detail .project-hero__overlay .breadcrumb--light span,
.project-detail .project-hero__overlay .breadcrumb--light a {
  color: #fff !important;
}
.project-detail .project-hero__overlay .breadcrumb--light a {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .85;
}
.project-detail .project-hero__overlay .breadcrumb--light a:hover {
  opacity: 1;
}
.project-detail .project-hero__overlay .breadcrumb--light span[aria-hidden] {
  opacity: .65;
  margin: 0 4px;
}
/* Ultimo span (nome progetto corrente): bianco pieno, grassetto */
.project-detail .project-hero__overlay .breadcrumb--light > span:last-child {
  font-weight: 600;
  opacity: 1;
}

/* Badge: padding molto ridotto, anello sottile, logo più grande */
.project-detail .project-decoration {
  padding: 8px !important;
  box-shadow:
    0 12px 40px rgba(10, 61, 98, .35),
    0 0 0 3px rgba(255, 255, 255, .5) !important;
}

@media (max-width: 900px) {
  .project-detail .project-decoration {
    padding: 6px !important;
    box-shadow:
      0 8px 24px rgba(10, 61, 98, .3),
      0 0 0 2px rgba(255, 255, 255, .5) !important;
  }
}
@media (max-width: 480px) {
  .project-detail .project-decoration {
    padding: 5px !important;
  }
}
/* === END BADGE FIX ===*/
