/* ═══════════════════════════════════════════════════
   PONDOLO & MELLINO — Shared Stylesheet
   ═══════════════════════════════════════════════════ */

/* ─── RESET & BASE ──────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --orange: #F39508;
  --orange-dark: #C97900;
  --orange-light: #FFF3D6;
  --orange-tint: rgba(243, 149, 8, 0.10);
  --green: #41A939;
  --green-dark: #2E8027;
  --green-light: #EBF9E9;
  --green-tint: rgba(65, 169, 57, 0.10);
  --cream: #FFFBF4;
  --cream-2: #FFF7EA;
  --ink: #1E1408;
  --ink-mid: #4A3B28;
  --ink-soft: #7A6A55;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --shadow-sm: 0 2px 12px rgba(30, 20, 8, 0.07);
  --shadow-md: 0 8px 32px rgba(30, 20, 8, 0.10);
  --shadow-lg: 0 20px 60px rgba(30, 20, 8, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  color: var(--ink);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ─── UTILITIES ─────────────────────────────────── */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}

.section-label.orange {
  background: var(--orange-light);
  color: var(--orange-dark);
}

.section-label.green {
  background: var(--green-light);
  color: var(--green-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 24px rgba(243, 149, 8, 0.40);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 10px 32px rgba(243, 149, 8, 0.50);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(30, 20, 8, 0.10);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-md);
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 24px rgba(65, 169, 57, 0.40);
}

.btn-green:hover {
  background: var(--green-dark);
}

/* ─── SCROLL ANIMATIONS ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ─── SECTION BASE ───────────────────────────────── */
section {
  padding: 90px 0;
}

.section-header {
  margin-bottom: 52px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 580px;
  line-height: 1.75;
  margin-top: 14px;
}

/* ─── NAVBAR ─────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 6px 0;
  background: rgba(255, 251, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(243, 149, 8, 0.10);
  transition: box-shadow 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 4px 24px rgba(30, 20, 8, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex; align-items: center; gap: 0px; /* Ridotto il gap */
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 2rem; color: var(--ink); flex-shrink: 0;
  transform: translateY(16px); /* Abbassato ulteriormente */
}

.nav-logo-mark {
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
  flex-shrink: 0;
  margin-right: -18px; /* Avvicina il testo al logo */
  transition: all 0.3s ease;
}

.nav-logo-accent {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

/* Dropdown */
.nav-dropdown-item {
  position: relative;
}

.nav-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link-btn:hover,
.nav-dropdown-item:hover .nav-link-btn {
  color: var(--orange);
  background: var(--orange-tint);
}

.nav-link-btn .chevron {
  display: flex;
  align-items: center;
  transition: transform 0.25s;
}

.nav-dropdown-item:hover .nav-link-btn .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border-radius: 18px;
  padding: 18px 8px 8px;
  min-width: 270px;
  box-shadow: 0 20px 60px rgba(30, 20, 8, 0.14), 0 2px 8px rgba(30, 20, 8, 0.06);
  border: 1px solid rgba(243, 149, 8, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.25s ease, transform 0.2s ease;
  z-index: 200;
}

.nav-dropdown-item:hover .dropdown-menu,
.nav-dropdown-item.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item.open .nav-link-btn {
  color: var(--orange);
  background: var(--orange-tint);
}

.nav-dropdown-item.open .nav-link-btn .chevron {
  transform: rotate(180deg);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.15s;
}

.dropdown-link:hover {
  background: var(--cream);
}

.dropdown-link-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

.dropdown-link strong {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
}

.dropdown-link small {
  display: block;
  font-size: 0.73rem;
  color: var(--ink-soft);
  font-family: 'Nunito', sans-serif;
  margin-top: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(243, 149, 8, 0.10);
}

.mobile-menu.open {
  display: flex;
}

.mobile-section-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-mid);
  transition: background 0.15s, color 0.15s;
}

.mobile-section-btn:hover {
  background: var(--orange-tint);
  color: var(--orange-dark);
}

.mob-chevron {
  display: flex;
  align-items: center;
  transition: transform 0.25s;
}

.mobile-section-btn.open .mob-chevron {
  transform: rotate(180deg);
}

.mobile-section-content {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding-left: 14px;
}

.mobile-section-content.open {
  display: flex;
}

.mobile-section-content a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-mid);
  transition: background 0.15s, color 0.15s;
}

.mobile-section-content a:hover {
  background: var(--orange-light);
  color: var(--orange-dark);
}

.mobile-cta-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0 0;
  margin-top: 8px;
  border-top: 1px solid rgba(30, 20, 8, 0.06);
}

.mobile-cta-links .btn {
  justify-content: center;
}

/* ─── PAGE HERO (inner pages) ────────────────────── */
.page-hero {
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--cream-2);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, var(--orange-tint) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 5% 80%, var(--green-tint) 0%, transparent 60%);
}

.page-hero-blob {
  position: absolute;
  pointer-events: none;
  animation: morph 10s ease-in-out infinite;
  opacity: 0.45;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--orange);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.bc-sep {
  opacity: 0.4;
}

.page-hero-title {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 12px 0 18px;
}

.page-hero-title em {
  font-style: italic;
  color: var(--orange);
}

.page-hero-title .green {
  color: var(--green);
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--ink-mid);
  line-height: 1.75;
  max-width: 600px;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ─── GRIDS ──────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

/* ─── CARDS ──────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card.bg-cream {
  background: var(--cream);
}

.card.bg-orange {
  background: var(--orange-light);
}

.card.bg-green {
  background: var(--green-light);
}

.card.b-orange {
  border-bottom: 4px solid var(--orange);
}

.card.b-green {
  border-bottom: 4px solid var(--green);
}

.card.b-mix {
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, var(--orange), var(--green)) 1;
}

.card.bt-orange {
  border-top: 4px solid var(--orange);
}

.card.bt-green {
  border-top: 4px solid var(--green);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card-num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.card-num.green {
  color: var(--green);
}

.card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ─── TWO COLUMN ─────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col.img-right .col-img {
  order: 1;
}

.col-img {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--green-light) 100%);
  min-height: 380px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.col-img .img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
}

.col-img .img-badge strong {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--orange);
  display: block;
  line-height: 1;
}

.col-img .img-badge span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ─── INFO LIST ──────────────────────────────────── */
.info-list {
  display: flex;
  flex-direction: column;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(30, 20, 8, 0.06);
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.info-icon.o {
  background: var(--orange-light);
}

.info-icon.g {
  background: var(--green-light);
}

.info-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.info-value {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  margin-top: 4px;
}

/* ─── HIGHLIGHT BOX ──────────────────────────────── */
.highlight {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 28px 0;
}

.highlight.orange {
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
}

.highlight.green {
  background: var(--green-light);
  border-left: 4px solid var(--green);
}

.highlight-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.highlight p {
  font-size: 0.93rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ─── PROCESS STEPS ──────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.step-num.green {
  background: var(--green);
}

.step-body h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ─── CTA SECTION ────────────────────────────────── */
.cta-section {
  background: var(--ink);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(243, 149, 8, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 50%, rgba(65, 169, 57, 0.12) 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-inline: auto;
}

.cta-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-title em {
  font-style: italic;
  color: var(--orange);
}

.cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.cta-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── FOOTER ─────────────────────────────────────── */
#footer {
  background: var(--ink);
  padding: 60px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo-accent {
  color: var(--green);
}

.footer-desc {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials-row {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.2s, color 0.2s;
}

.footer-social:hover {
  background: var(--orange);
  color: #fff;
}

.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.27);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.27);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--orange);
}

/* ─── DINAMISMO & MASCHERE ──────────────────────── */
.chi-photo-area {
  position: relative;
}

.chi-main-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--orange-light), #FFE5A5, var(--green-light));
  border-radius: 50% 40% 55% 45% / 40% 50% 50% 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  box-shadow: 0 24px 72px rgba(243, 149, 8, 0.18), 0 8px 24px rgba(65, 169, 57, 0.10);
  position: relative;
  overflow: hidden;
  animation: morph 14s ease-in-out infinite;
}

.chi-mini-photo {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 35% 65% 60% 40% / 55% 45% 55% 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  color: white;
  box-shadow: 0 16px 40px rgba(65, 169, 57, 0.30);
  border: 4px solid var(--white);
  animation: morph 10s ease-in-out infinite reverse;
}

.chi-micro-photo {
  position: absolute;
  top: 20px;
  left: -28px;
  width: 90px;
  height: 90px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 28px rgba(243, 149, 8, 0.35);
  border: 4px solid var(--white);
  animation: float 6s ease-in-out infinite 1s;
}

.chi-badge {
  position: absolute;
  bottom: 40px;
  left: -20px;
  background: var(--white);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
}

.chi-badge strong {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
  line-height: 1;
}

.chi-badge small {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes morph {

  0%,
  100% {
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  }

  33% {
    border-radius: 30% 70% 40% 60% / 60% 30% 70% 40%;
  }

  66% {
    border-radius: 50% 50% 30% 70% / 40% 70% 30% 60%;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-cta .btn-secondary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 110px 0 60px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col.img-right .col-img {
    order: 0;
  }

  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .page-hero-title {
    font-size: 2.2rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    justify-content: center;
  }
}
/* ─── RESPONSIVE EXTRA ──────────────────────────── */
/* Navbar più compatta su tablet/mobile */
@media (max-width: 960px) {
  #navbar { padding: 4px 0; }
  .nav-logo {
    font-size: 1.5rem;
    transform: translateY(8px);
  }
  .nav-logo span { font-size: 1.4rem !important; }
  .nav-logo-mark {
    width: 76px;
    height: 76px;
    margin-right: -10px;
  }
  .nav-cta .btn-primary {
    padding: 9px 16px !important;
    font-size: 0.82rem !important;
  }
}

/* Tablet stretto / mobile */
@media (max-width: 768px) {
  /* Niente overflow orizzontale dovuto a sfondi/blob */
  body { overflow-x: clip; }

  .nav-logo {
    font-size: 1.3rem;
    transform: translateY(6px);
  }
  .nav-logo span { font-size: 1.2rem !important; }
  .nav-logo-mark {
    width: 64px;
    height: 64px;
    margin-right: -8px;
  }

  /* Hero: evita overflow del word-swap (min-width: 260px inline) */
  .hero-word-swap {
    min-width: 0 !important;
    width: 100%;
    display: block;
  }
  .hero-word-swap span { white-space: normal; }
  .hero-title {
    font-size: 3rem !important;
  }

  .section-title {
    font-size: 2.35rem;
  }

  .page-hero-title {
    font-size: 2.7rem;
  }

  .cta-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero-photo-blob { font-size: 5rem; }
  .hero-mini-mask {
    width: 92px;
    height: 92px;
    bottom: -10px;
  }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Bottoni più "tappabili" */
  .btn { padding: 13px 22px; min-height: 44px; }

  /* Form: input ≥ 16px per evitare zoom iOS */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
    padding: 12px 14px !important;
  }
  .contact-form { padding: 28px 20px !important; border-radius: 22px !important; }

  /* Mappa più alta su mobile per essere usabile */
  .map-wrap { height: 260px !important; }

  /* Foto/blobs grandi: scala emoji */
  .chi-main-photo { font-size: 5rem; }
  .chi-mini-photo { width: 100px; height: 100px; font-size: 2.4rem; bottom: -16px; right: -10px; }
  .chi-badge { padding: 12px 14px; left: -8px; bottom: 24px; }
  .chi-badge strong { font-size: 1.5rem; }

  /* Sezioni con padding interno generoso → riducilo */
  .col-img { min-height: 260px; font-size: 4.5rem; border-radius: var(--radius-lg); }

  /* Footer: socials a sinistra, no troppo spazio */
  .footer-socials-row { justify-content: flex-start; }
  .footer-bottom { font-size: 0.78rem; }
  .footer-legal span,
  .footer-legal { word-break: break-word; }

  /* CTA section: bottoni stretchati */
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Page hero più compatto */
  .page-hero { padding: 100px 0 50px; }
  .page-hero-actions .btn { width: 100%; justify-content: center; }

  /* Container un filo più largo a parità di padding */
  .container { width: min(1200px, 94%); }
}

/* Phone piccolo */
@media (max-width: 480px) {
  section { padding: 56px 0; }
  .hero-title { font-size: 2.45rem !important; }
  .hero-subtitle { font-size: 0.95rem; line-height: 1.65; }
  .section-title { font-size: 2rem; }
  .cta-title { font-size: 1.8rem; }
  .page-hero-title { font-size: 2rem !important; }
  .nav-logo span { font-size: 1.05rem !important; }
  .nav-logo-mark {
    width: 56px;
    height: 56px;
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr !important; }
}

/* Phone molto piccolo (≤360px) */
@media (max-width: 360px) {
  .nav-logo span { font-size: 0.95rem !important; }
  .nav-logo-mark { width: 48px; height: 48px; }
  .hero-title { font-size: 1.85rem !important; }
}
