:root {
  --green-dark: #184d3b;
  --green: #2f7d5a;
  --green-soft: #dfeee5;
  --gold: #d8a24a;
  --gold-soft: #f5ead2;
  --sky: #dceef4;
  --cream: #fbf6ec;
  --paper: #ffffff;
  --ink: #17212b;
  --muted: #60717f;
  --border: rgba(24, 77, 59, 0.16);

  --shadow-soft: 0 22px 60px rgba(28, 55, 47, 0.14);
  --shadow-card: 0 16px 42px rgba(28, 55, 47, 0.10);

  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --container: 1180px;
}

/* =========================
   BASE
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body::selection {
  background: var(--gold-soft);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  z-index: 9999;
  padding: 10px 14px;
  color: #fff;
  background: var(--green-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
}

/* =========================
   HEADER
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(24, 77, 59, 0.12);
  backdrop-filter: blur(16px);
}

.top-strip {
  background: linear-gradient(90deg, var(--green-dark), #0f3b32);
  color: #fff;
  font-size: 0.86rem;
}

.top-strip__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-strip p {
  margin: 0;
}

.top-strip__links {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}

.top-strip__links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.top-strip__links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.main-nav {
  background: rgba(255, 255, 255, 0.94);
}

.main-nav__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 360px;
  max-width: 38vw;
  height: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 999px;
  color: #173d35;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--green-dark);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--green-dark);
  border-radius: 999px;
}

/* =========================
   HERO GENERALE
   ========================= */

.hero-villa {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  background: #eef6f0;
}

.hero-villa__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.26) 0%,
      rgba(255, 255, 255, 0.10) 34%,
      rgba(255, 255, 255, 0.06) 62%,
      rgba(255, 255, 255, 0.14) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(251, 246, 236, 0.12) 100%
    ),
    url("../img/home/villa-serena-struttura.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* =========================
   HERO SPECIFICO C.D.R.
   File richiesto:
   assets/img/cdr/cdr-hero.jpg
   ========================= */

.hero-villa--cdr .hero-villa__image {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.10) 34%,
      rgba(255, 255, 255, 0.06) 62%,
      rgba(255, 255, 255, 0.14) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(251, 246, 236, 0.12) 100%
    ),
    url("../img/cdr/cdr-hero.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-villa::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 18%, rgba(216, 162, 74, 0.08), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(220, 238, 244, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(251, 246, 236, 0.10) 100%);
  pointer-events: none;
}

.hero-villa__content {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
  gap: 34px;
  align-items: center;
  padding: 62px 0 76px;
}

.hero-villa__text {
  justify-self: start;
  max-width: 510px;
  padding: 24px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow: 0 10px 26px rgba(28, 55, 47, 0.08);
  backdrop-filter: blur(4px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-villa h1 {
  margin: 0;
  max-width: 500px;
  color: #14342d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-villa__lead {
  margin-top: 14px;
  color: #314b45;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero-villa__text p:not(.eyebrow):not(.hero-villa__lead) {
  color: #5e6f79;
  font-size: 11px;
  line-height: 1.55;
  max-width: 500px;
}

.hero-villa__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* =========================
   BUTTONS
   ========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  box-shadow: 0 10px 22px rgba(24, 77, 59, 0.20);
}

.button--primary:hover {
  box-shadow: 0 14px 28px rgba(24, 77, 59, 0.26);
}

.button--light {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(24, 77, 59, 0.18);
}

.button--light:hover {
  background: #fff;
  box-shadow: var(--shadow-card);
}

/* =========================
   PANNELLO AVVISI HERO
   ========================= */

.notice-panel {
  justify-self: end;
  width: 100%;
  max-width: 355px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.50);
  box-shadow: 0 12px 32px rgba(28, 55, 47, 0.10);
  backdrop-filter: blur(5px);
}

.notice-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(223, 238, 229, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
}

.notice-panel__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.notice-panel h2 {
  margin: 0 0 12px;
  color: #14342d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  line-height: 1.13;
}

.notice-panel__group + .notice-panel__group {
  margin-top: 18px;
}

.notice-panel__group-title {
  margin-bottom: 10px;
  color: #5f7480;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notice-panel a {
  display: block;
  margin-top: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(24, 77, 59, 0.13);
  border-radius: 15px;
  color: #173d35;
  background: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.notice-panel a:hover {
  background: rgba(245, 234, 210, 0.88);
  border-color: rgba(216, 162, 74, 0.45);
}

/* =========================
   SEZIONI
   ========================= */

.section {
  padding: 84px 0;
  background: #fff;
}

.section--cream {
  background:
    radial-gradient(circle at 10% 10%, rgba(216, 162, 74, 0.1), transparent 30%),
    var(--cream);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2,
.welcome-card h2,
.relief-card h2,
.quality-grid h2,
.contact-grid h2 {
  margin: 0;
  color: #14342d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p,
.welcome-card p,
.relief-card p,
.quality-grid p,
.contact-grid p {
  color: var(--muted);
  font-size: 1.06rem;
}

/* =========================
   BENVENUTO
   ========================= */

.welcome-section {
  margin-top: -54px;
  position: relative;
  z-index: 5;
  background: transparent;
  padding-top: 0;
}

.welcome-card {
  max-width: 980px;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: var(--shadow-card);
  text-align: center;
  backdrop-filter: blur(10px);
}

.welcome-card p {
  max-width: 850px;
  margin: 18px auto 0;
}

/* =========================
   SERVIZI
   ========================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(28, 55, 47, 0.16);
}

.service-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
}

.service-card div {
  padding: 24px;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.service-card__link:hover {
  text-decoration: underline;
}

/* =========================
   RICOVERO DI SOLLIEVO / CARD ORIZZONTALE
   ========================= */

.relief-section {
  background: linear-gradient(180deg, #f3f8fb 0%, #dcecf3 100%);
}

.relief-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: center;
  padding: 26px 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(24, 77, 59, 0.10);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.relief-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 0;
  text-decoration: none;
}

.relief-card__image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(28, 55, 47, 0.12);
}

.relief-card__content {
  padding: 4px 0;
}

.relief-card__content .eyebrow {
  margin-bottom: 12px;
  color: #5c7280;
}

.relief-card__content h2 {
  margin-bottom: 18px;
}

.relief-card__content p {
  margin: 0;
  max-width: 690px;
}

.relief-card__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.relief-card__points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(223, 238, 229, 0.95);
  border: 1px solid rgba(47, 125, 90, 0.16);
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

/* =========================
   QUALITÀ
   ========================= */

.quality-section {
  background: linear-gradient(135deg, var(--green-dark), #0f3b32);
  color: #fff;
}

.quality-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

.quality-grid h2,
.quality-grid .eyebrow {
  color: #fff;
}

.quality-grid p {
  color: rgba(255, 255, 255, 0.82);
}

.quality-actions {
  display: grid;
  gap: 12px;
}

.quality-badge,
.quality-link {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.quality-badge {
  background: linear-gradient(135deg, var(--gold), #f0c06a);
  color: #173d35;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.quality-link {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.quality-link:hover {
  background: rgba(255, 255, 255, 0.17);
}

/* =========================
   AVVISI / CARD DOCUMENTI / TARIFFE
   ========================= */

.notice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.notice-grid a {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  color: var(--green-dark);
  text-decoration: none;
}

.notice-grid a:hover {
  background: var(--green-soft);
}

.notice-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notice-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.12;
}

.notice-grid.notice-grid--three {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.notice-grid.notice-grid--three a {
  width: 290px;
  min-height: 145px;
}

.notice-static-card {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  color: var(--green-dark);
}

.notice-static-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notice-static-card strong {
  display: block;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.12;
}

.notice-static-card p {
  margin: 0;
  color: #173d35;
  font-size: 0.96rem;
  line-height: 1.6;
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

/* =========================
   CONTATTI
   ========================= */

.contact-section {
  background:
    radial-gradient(circle at top right, rgba(220, 238, 244, 0.55), transparent 34%),
    #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: start;
}

.contact-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.contact-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.contact-card div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(24, 77, 59, 0.13);
}

.contact-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 4px 0 0;
  color: var(--green-dark);
  font-weight: 800;
}

.contact-card a {
  color: var(--green-dark);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  padding: 38px 0;
  color: #fff;
  background: #102b25;
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.site-footer p {
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  opacity: 0.86;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =========================
   RESPONSIVE TABLET
   ========================= */

@media (max-width: 1080px) {
  .brand-logo img {
    width: 300px;
    max-width: 34vw;
  }

  .nav-menu a {
    padding: 0 9px;
    font-size: 0.84rem;
  }

  .hero-villa__content {
    grid-template-columns: 1fr;
  }

  .notice-panel {
    justify-self: start;
    max-width: 620px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .relief-card {
    grid-template-columns: 300px 1fr;
    gap: 28px;
  }

  .relief-card__image img {
    max-width: 250px;
  }
}

/* =========================
   RESPONSIVE MOBILE / TABLET PICCOLO
   ========================= */

@media (max-width: 860px) {
  .top-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
  }

  .top-strip__links {
    flex-wrap: wrap;
  }

  .main-nav__inner {
    min-height: 78px;
  }

  .brand-logo img {
    width: 250px;
    max-width: calc(100vw - 110px);
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav-menu {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 120px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    justify-content: flex-start;
    border-radius: 14px;
    padding: 0 14px;
  }

  .hero-villa {
    min-height: auto;
  }

  .hero-villa__image {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.48) 0%,
        rgba(255, 255, 255, 0.30) 42%,
        rgba(251, 246, 236, 0.44) 100%
      ),
      url("../img/home/villa-serena-struttura.jpg");
    background-size: cover;
    background-position: center center;
  }

  .hero-villa--cdr .hero-villa__image {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.48) 0%,
        rgba(255, 255, 255, 0.30) 42%,
        rgba(251, 246, 236, 0.44) 100%
      ),
      url("../img/cdr/cdr-hero.jpg");
    background-size: cover;
    background-position: center center;
  }

  .hero-villa__content {
    min-height: auto;
    padding: 44px 0 64px;
  }

  .hero-villa__text {
    max-width: 100%;
    padding: 20px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(4px);
  }

  .hero-villa h1 {
    font-size: clamp(1.5rem, 6.2vw, 1.95rem);
  }

  .hero-villa__lead {
    font-size: 0.92rem;
  }

  .hero-villa__text p:not(.eyebrow):not(.hero-villa__lead) {
    font-size: 11px;
  }

  .hero-villa__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .welcome-section {
    margin-top: -34px;
  }

  .welcome-card {
    padding: 28px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .relief-card,
  .quality-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .relief-card {
    padding: 24px;
    gap: 24px;
  }

  .relief-card__image {
    justify-content: center;
  }

  .relief-card__image img {
    max-width: 240px;
  }

  .notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-grid.notice-grid--three {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
  }

  .notice-grid.notice-grid--three a {
    width: 100%;
  }

  .site-footer__inner {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

/* =========================
   RESPONSIVE SMARTPHONE
   ========================= */

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .top-strip {
    font-size: 0.8rem;
  }

  .brand-logo img {
    width: 220px;
  }

  .nav-menu {
    top: 116px;
  }

  .hero-villa__content {
    padding-top: 32px;
  }

  .hero-villa__text {
    padding: 18px;
  }

  .notice-panel {
    padding: 18px;
  }

  .notice-panel h2 {
    font-size: 1.2rem;
  }

  .notice-panel a {
    font-size: 0.84rem;
    padding: 10px 11px;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading h2,
  .welcome-card h2,
  .relief-card h2,
  .quality-grid h2,
  .contact-grid h2 {
    font-size: 2.1rem;
  }

  .notice-grid {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 220px;
  }

  .relief-card {
    padding: 20px 18px;
  }

  .relief-card__image img {
    max-width: 210px;
  }

  .relief-card__points {
    gap: 8px;
  }

  .relief-card__points span {
    width: 100%;
  }

  .contact-card {
    padding: 22px;
  }
}

/* =========================================================
   PAGINA CARTA DEI SERVIZI
   Regole isolate: non modificano le altre pagine
   Richiede:
   <body class="page-carta-servizi">
   <section class="hero-villa hero-villa--carta-servizi">
   ========================================================= */

.page-carta-servizi .charter-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* HERO specifica Carta dei servizi */

.page-carta-servizi .hero-villa--carta-servizi .hero-villa__content {
  grid-template-columns: minmax(0, 520px) minmax(360px, 460px);
  gap: 42px;
  align-items: center;
  justify-content: space-between;
}

.page-carta-servizi .hero-villa--carta-servizi .hero-villa__text,
.page-carta-servizi .hero-villa--carta-servizi .charter-hero-note {
  justify-self: start;
  max-width: 520px;
  padding: 30px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 46px rgba(28, 55, 47, 0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-carta-servizi .hero-villa--carta-servizi .hero-villa__text h1 {
  display: none;
}

.page-carta-servizi .hero-villa--carta-servizi .hero-villa__lead,
.page-carta-servizi .hero-villa--carta-servizi .charter-hero-note .hero-villa__lead {
  margin-top: 0;
  color: var(--green-dark);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 900;
  line-height: 1.48;
}

.page-carta-servizi .hero-villa--carta-servizi .hero-villa__text p:not(.eyebrow):not(.hero-villa__lead),
.page-carta-servizi .hero-villa--carta-servizi .charter-hero-note p:not(.eyebrow):not(.hero-villa__lead) {
  color: #314b45;
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 700;
}

/* Pannello vetro nuovo, solo pagina Carta dei servizi */

.page-carta-servizi .carta-hero-impegno {
  justify-self: end;
  width: 100%;
  max-width: 460px;
  padding: 30px 28px;
  border-radius: 34px;
  text-align: center;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0.18)
    );
  border: 1px solid rgba(255, 255, 255, 0.50);
  box-shadow:
    0 24px 60px rgba(18, 63, 50, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-carta-servizi .carta-hero-impegno .eyebrow {
  margin-bottom: 12px;
  color: rgba(18, 63, 50, 0.78);
}

.page-carta-servizi .carta-hero-impegno h2 {
  max-width: 390px;
  margin: 0 auto;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-carta-servizi .carta-hero-impegno p {
  max-width: 390px;
  margin: 15px auto 0;
  color: rgba(18, 63, 50, 0.92);
  font-size: 0.95rem;
  line-height: 1.68;
  font-weight: 700;
}

.page-carta-servizi .carta-hero-impegni {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.page-carta-servizi .carta-hero-impegno-card {
  padding: 15px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.page-carta-servizi .carta-hero-impegno-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.15;
}

.page-carta-servizi .carta-hero-impegno-card span {
  display: block;
  color: rgba(18, 63, 50, 0.92);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 700;
}

/* Sezione introduttiva Carta */

.page-carta-servizi .charter-foundation {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 239, 0.96));
  border: 1px solid rgba(18, 63, 50, 0.10);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.page-carta-servizi .charter-foundation h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.page-carta-servizi .charter-foundation p {
  max-width: 880px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.page-carta-servizi .charter-foundation strong {
  color: var(--green-dark);
  font-weight: 900;
}

/* Documenti Carta servizi */

.page-carta-servizi .charter-doc-list {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 34px auto 0;
}

.page-carta-servizi .charter-doc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 63, 50, 0.12);
  box-shadow: var(--shadow-soft);
  color: var(--green-dark);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.page-carta-servizi .charter-doc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 63, 50, 0.25);
  box-shadow: var(--shadow-card);
}

.page-carta-servizi .charter-doc-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 22px;
  background: rgba(18, 63, 50, 0.08);
  color: var(--green-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.page-carta-servizi .charter-doc-card span span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-carta-servizi .charter-doc-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.14;
}

.page-carta-servizi .charter-doc-card em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

/* Prefazione immagini */

.page-carta-servizi .charter-photo-preface {
  max-width: 980px;
  margin: 0 auto 38px;
  text-align: center;
}

.page-carta-servizi .charter-photo-preface h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-carta-servizi .charter-photo-preface p {
  max-width: 860px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

/* Galleria immagini Carta */

.page-carta-servizi .charter-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.page-carta-servizi .charter-photo-card {
  overflow: hidden;
  margin: 0;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 63, 50, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.page-carta-servizi .charter-photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 63, 50, 0.24);
  box-shadow: var(--shadow-card);
}

.page-carta-servizi .charter-photo-card--wide {
  grid-column: span 2;
}

.page-carta-servizi .charter-photo-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8eee7;
}

.page-carta-servizi .charter-photo-card--wide .charter-photo-card__image {
  aspect-ratio: 2 / 1;
}

.page-carta-servizi .charter-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.03);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.page-carta-servizi .charter-photo-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.05);
}

.page-carta-servizi .charter-photo-card figcaption {
  padding: 20px 22px 22px;
}

.page-carta-servizi .charter-photo-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-carta-servizi .charter-photo-card strong {
  display: block;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  line-height: 1.12;
}

.page-carta-servizi .charter-photo-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Responsive solo Carta servizi */

@media (max-width: 1080px) {
  .page-carta-servizi .hero-villa--carta-servizi .hero-villa__content {
    grid-template-columns: 1fr;
  }

  .page-carta-servizi .hero-villa--carta-servizi .hero-villa__text,
  .page-carta-servizi .hero-villa--carta-servizi .charter-hero-note,
  .page-carta-servizi .carta-hero-impegno {
    justify-self: start;
    max-width: 620px;
  }
}

@media (max-width: 980px) {
  .page-carta-servizi .charter-photo-grid {
    grid-template-columns: 1fr;
  }

  .page-carta-servizi .charter-photo-card--wide {
    grid-column: span 1;
  }

  .page-carta-servizi .charter-photo-card--wide .charter-photo-card__image {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  .page-carta-servizi .hero-villa--carta-servizi .hero-villa__text,
  .page-carta-servizi .hero-villa--carta-servizi .charter-hero-note,
  .page-carta-servizi .carta-hero-impegno {
    padding: 22px;
    border-radius: 28px;
  }

  .page-carta-servizi .charter-doc-card {
    grid-template-columns: 1fr;
  }

  .page-carta-servizi .charter-doc-card__number {
    width: auto;
    height: 42px;
    justify-content: flex-start;
    padding: 0 14px;
  }

  .page-carta-servizi .carta-hero-impegno h2 {
    font-size: 1.55rem;
  }
}

/* =========================================================
   PAGINA QUALITÀ ISO 9001
   Regole isolate per correggere impaginazione obiettivi,
   aspetti finanziari e card statiche senza rompere index.
   ========================================================= */

.hero-villa--qualita .hero-villa__content {
  grid-template-columns: minmax(0, 1fr) 355px;
}

#aspetti-finanziari .section-heading {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#aspetti-finanziari .section-heading p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.notice-grid:has(> .notice-static-card) {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1120px;
  margin: 34px auto 0;
}

.notice-grid:has(> .notice-static-card) .notice-static-card {
  flex: 0 1 258px;
  min-height: 210px;
  justify-content: flex-start;
  padding: 28px 24px;
}

.notice-grid:has(> .notice-static-card) .notice-static-card strong {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

#aspetti-finanziari .notice-grid.notice-grid--three {
  max-width: 1040px;
  margin-top: 34px;
}

#aspetti-finanziari .notice-grid.notice-grid--three a {
  width: 310px;
  min-height: 210px;
  justify-content: flex-start;
  gap: 22px;
  padding: 28px 24px;
}

#aspetti-finanziari .notice-grid.notice-grid--three a strong {
  font-size: 1.45rem;
}

#aspetti-finanziari .notice-grid.notice-grid--three a p {
  margin: 0;
  color: #173d35;
  font-size: 0.96rem;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .hero-villa--qualita .hero-villa__content {
    grid-template-columns: 1fr;
  }

  .notice-grid:has(> .notice-static-card) {
    max-width: 720px;
  }

  .notice-grid:has(> .notice-static-card) .notice-static-card {
    flex-basis: calc(50% - 12px);
  }
}

@media (max-width: 860px) {
  #aspetti-finanziari .notice-grid.notice-grid--three {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
  }

  #aspetti-finanziari .notice-grid.notice-grid--three a {
    width: 100%;
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .notice-grid:has(> .notice-static-card) {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
  }

  .notice-grid:has(> .notice-static-card) .notice-static-card {
    flex-basis: auto;
    width: 100%;
    min-height: auto;
  }
}