/* ===== Dental R.M. — Stylesheet ===== */

/* ===== Design Tokens (Human / Approachable) ===== */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --fg: #1a202c;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-light: rgba(13,148,136,.06);
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --font-display: 'Söhne', 'Avenir Next', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* ===== Decorative geometric shapes (global) ===== */
.geo-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

/* Circles — small to extra-large */
.geo-circle-sm { width: 80px; height: 80px; border-radius: 50%; background: var(--accent-light); opacity: .6; }
.geo-circle-md { width: 140px; height: 140px; border-radius: 50%; background: var(--accent-light); opacity: .35; }
.geo-circle-lg { width: 220px; height: 220px; border-radius: 50%; background: rgba(13,148,136,.04); opacity: .4; }
.geo-circle-xl { width: 280px; height: 280px; border-radius: 50%; background: rgba(13,148,136,.03); opacity: .3; }

/* Gradient blobs — soft mesh-style color pools */
.geo-blob { width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.07) 0%, transparent 70%); opacity: .5; }
.geo-blob-sm { width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.06) 0%, transparent 70%); opacity: .4; }
.geo-blob-lg { width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.04) 0%, transparent 70%); opacity: .35; }

/* Rings — solid outline */
.geo-ring { width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--accent-light); opacity: .4; background: transparent; }
.geo-ring-lg { width: 200px; height: 200px; border-radius: 50%; border: 2px solid rgba(13,148,136,.07); opacity: .35; background: transparent; }

/* Diamonds */
.geo-diamond { width: 90px; height: 90px; transform: rotate(45deg); background: var(--accent-light); opacity: .25; border-radius: 2px; }
.geo-diamond-lg { width: 130px; height: 130px; transform: rotate(45deg); background: rgba(13,148,136,.035); opacity: .2; border-radius: 2px; }

/* Crosses */
.geo-cross { width: 40px; height: 40px; position: relative; }
.geo-cross::before, .geo-cross::after { content: ''; position: absolute; background: rgba(13,148,136,.1); border-radius: 2px; }
.geo-cross::before { width: 100%; height: 6px; top: 50%; transform: translateY(-50%); }
.geo-cross::after { width: 6px; height: 100%; left: 50%; transform: translateX(-50%); }

/* Dot grids (small) */
.geo-dots { display: grid; grid-template-columns: repeat(3, 8px); gap: 12px; opacity: .25; }
.geo-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Dot wall — dense wallpaper pattern of dots */
.geo-dotwall { display: grid; grid-template-columns: repeat(8, 14px); gap: 20px; opacity: .08; }
.geo-dotwall span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Large dot wall — sparse */
.geo-dotsparse { display: grid; grid-template-columns: repeat(6, 18px); gap: 32px; opacity: .1; }
.geo-dotsparse span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Diagonal lines band */
.geo-diaglines { position: absolute; inset: 0; overflow: hidden; opacity: .04; }
.geo-diaglines::before, .geo-diaglines::after { content: ''; position: absolute; width: 2px; height: 300%; background: var(--accent); transform: rotate(35deg); }
.geo-diaglines::before { left: -10%; }
.geo-diaglines::after { right: -10%; }

/* Diagonal accent stripe */
.geo-stripe { position: absolute; width: 600px; height: 4px; background: linear-gradient(90deg, transparent, rgba(13,148,136,.06), transparent); transform: rotate(-25deg); }

/* Horizontal gradient line */
.geo-line { height: 2px; background: linear-gradient(90deg, transparent, rgba(13,148,136,.08), transparent); width: 200px; }

/* Triangle */
.geo-triangle { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 87px solid rgba(13,148,136,.04); filter: rotate(20deg); }

/* Arc */
.geo-arc { width: 160px; height: 80px; border-top: 3px solid rgba(13,148,136,.07); border-radius: 50% 50% 0 0; background: transparent; }

/* Gradient divider — inter-section */
.geo-divider { position: absolute; left: 0; right: 0; height: 80px; pointer-events: none; z-index: 1; overflow: hidden; }
.geo-divider::before { content: ''; display: block; width: 100%; height: 2px; background: linear-gradient(90deg, transparent 5%, rgba(13,148,136,.06) 30%, rgba(13,148,136,.08) 50%, rgba(13,148,136,.06) 70%, transparent 95%); margin: auto; }
.geo-divider::after { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(13,148,136,.08); position: absolute; left: 50%; top: calc(50% - 4px); transform: translateX(-50%); }

/* Mesh grid — subtle crosshatch */
.geo-mesh { background-image: linear-gradient(rgba(13,148,136,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(13,148,136,.02) 1px, transparent 1px); background-size: 40px 40px; opacity: .5; }

/* Concentric rings */
.geo-concentric { position: relative; width: 220px; height: 220px; }
.geo-concentric::before, .geo-concentric::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(13,148,136,.06); }
.geo-concentric::after { inset: 40px; border-color: rgba(13,148,136,.04); }

/* ===== Skip link (a11y) ===== */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--fg); color: #fff; padding: 8px 16px; z-index: 9999; font-size: 14px; border-radius: 0 0 var(--radius-sm) 0; transition: top .2s; }
.skip-link:focus { top: 0; }

/* ===== Nav (frosted, sticky) ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { font-weight: 700; font-size: 18px; color: var(--fg); letter-spacing: -.01em; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .01em; transition: color .2s; }
.nav-links a.btn-primary, .nav-links a.btn-secondary { color: #fff !important; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 5px 0; transition: transform .3s, opacity .3s; border-radius: 2px; }

/* ===== Section shared ===== */
.section-label {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 560px; margin-bottom: 40px; }
section {
  padding: 32px 24px;
  padding-bottom: calc(96px - var(--extra-top, 0px));
  position: relative;
  overflow: hidden;
}
/* Remove the extra visual space caused by large decorative shapes that sit at negative top positions. */
.hero { --extra-top: 32px; }
.services { --extra-top: 48px; }
.struttura { --extra-top: 48px; }
.chi-siamo { --extra-top: 60px; }
.promo-section { --extra-top: 48px; }
.contatti { --extra-top: 60px; }
.dove { --extra-top: 48px; }

/* Section background bands — alternating subtle color washes */
.section-band {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: visible;
}
.hero .section-band { background: linear-gradient(175deg, rgba(245,247,250,.6) 0%, rgba(255,255,255,.95) 50%, var(--bg) 100%); }
.services .section-band { background: linear-gradient(180deg, var(--bg) 0%, rgba(13,148,136,.015) 40%, rgba(255,255,255,.98) 70%); }
.struttura .section-band { background: linear-gradient(180deg, var(--bg) 0%, rgba(245,247,250,.6) 30%, rgba(13,148,136,.01) 70%); }
.chi-siamo .section-band { background: linear-gradient(180deg, var(--bg) 0%, rgba(255,255,255,.97) 40%, rgba(13,148,136,.012) 80%); }
.promo-section .section-band { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 40%, rgba(13,148,136,.015) 70%); }
.contatti .section-band { background: linear-gradient(180deg, var(--bg) 0%, rgba(245,247,250,.5) 30%, var(--bg) 70%); }
.dove .section-band { background: linear-gradient(180deg, var(--bg) 0%, rgba(255,255,255,.96) 40%, rgba(13,148,136,.01) 70%); }
footer .section-band { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }

.container { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; width: 100%; }

/* Section background bands */
.section-band {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: visible;
}

/* ===== HERO — same layout model as all other sections (padding-based, container-centered) ===== */
.hero {
  min-height: auto;
  display: block;
  align-items: normal;
  justify-content: center;
  padding-top: 80px;
  position: relative;
}
/* Hero always centered like other sections — uses .container for horizontal alignment */
.hero-grid {
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
/* Ensure hero text is always centered relative to other sections */
.hero-text { text-align: left; }
.hero-text h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 52px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 20px; }
.hero-text p { color: var(--muted); font-size: 17px; max-width: 460px; margin-bottom: 32px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 14px 28px; border-radius: var(--radius-md); font-weight: 600; font-size: 15px; cursor: pointer; transition: all .2s; border: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(13,148,136,.25); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,148,136,.3); color: #fff; }
.btn-secondary { background: transparent; border: 1.5px solid var(--border); color: var(--fg); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Hero image */
.hero-img-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-img-wrap img { width: 100%; max-width: 480px; border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-card); }

/* Hero decorative shapes */
.geo-shape, section::before, section::after { overflow: visible; max-width: none; }
@media (max-width:768px){.geo-blob-lg,.geo-circle-xl{width:140px!important;height:140px!important;}.geo-concentric{width:120px!important;height:120px!important;}.geo-stripe{width:300px!important;}}

/* ===== SERVICES ===== */
.services-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 20px; 
  margin-top: 40px; 
}

@media (min-width: 769px) {
  .services-grid { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  }
}
.service-card { background: var(--surface); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; display: flex; gap: 16px; align-items: flex-start; position: relative; width: 100%; max-width: 100%; overflow: hidden; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.service-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(13,148,136,.08); color: var(--accent); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.service-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; }
.service-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* Services decorative shapes */
.services .geo-circle-xl { top: -80px; left: -120px; opacity: .25; }
.services .geo-ring-lg { bottom: -60px; right: -90px; }
.services .geo-cross:nth-child(1) { top: 45%; right: 3%; width: 30px; height: 30px; }

/* ===== STRUCTURE (servizi.jpg) ===== */
.structure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 40px; }
.structure-img img { width: 100%; border-radius: var(--radius-md); aspect-ratio: 3/2; object-fit: cover; box-shadow: var(--shadow-card); }
.feature-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-check { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(13,148,136,.08); color: var(--accent); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.feature-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; letter-spacing: -.01em; }
.feature-item p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* Structure decorative shapes */
.struttura .geo-circle-sm { top: 8%; right: 6%; opacity: .4; }
.struttura .geo-triangle { bottom: 10%; left: 3%; width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 87px solid rgba(13,148,136,.04); }
.struttura .geo-line { top: 52%; left: -40px; width: 180px; }

/* ===== CHI SIAMO — same rhythm as other sections (no extra top padding) ===== */
#chi-siamo {
  --extra-top: 32px; /* matches the default section spacing model */
}
#chi-siamo .section-label,
#chi-siamo .section-title {
  margin-top: 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 48px;
  align-items: start;
}
.about-portrait img { width: 100%; border-radius: var(--radius-md); aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--shadow-card); }
.about-text h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.about-text .role { color: var(--accent); font-size: 14px; font-weight: 500; margin-bottom: 20px; display: block; }
.about-text p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }

/* Small gallery */
.small-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.small-gallery img { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow-card); cursor: pointer; transition: transform .2s, opacity .2s; }
.small-gallery img:hover { transform: scale(1.03); opacity: .85; }

/* Chi Siamo decorative shapes */
.chi-siamo .geo-circle-lg { top: -40px; left: -60px; opacity: .3; }
.chi-siamo .geo-diamond-lg { bottom: 5%; right: 2%; }
.chi-siamo .geo-cross:nth-child(1) { top: 38%; right: 5%; width: 36px; height: 36px; }

/* ===== PROMO BANNER ===== */
.promo-banner { background: linear-gradient(135deg, var(--accent), #0f766e); color: #fff; border-radius: var(--radius-md); padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; position: relative; overflow: hidden; }
.promo-banner h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.promo-banner p { color: rgba(255,255,255,.8); font-size: 14.5px; margin-top: 6px; max-width: 460px; line-height: 1.6; }
.btn-white { background: #fff; color: var(--accent-hover); padding: 14px 28px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; transition: transform .2s, box-shadow .2s; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; }
.btn-white:hover { color: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.15); text-decoration: none; }

/* Promo banner internal shapes */
.promo-banner .geo-arc { bottom: -30px; right: -20px; width: 200px; height: 100px; border-top-color: rgba(255,255,255,.08); }
.promo-banner .geo-circle-sm { top: -20px; left: 30%; opacity: .15; background: rgba(255,255,255,.1); }

/* ===== CONTATTI — same rhythm as other sections (no extra top padding) ===== */
#contatti {
  --extra-top: 32px; /* matches the default section spacing model */
}
#contatti .section-label,
#contatti .section-title {
  margin-top: 0;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--fg); letter-spacing: .01em; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; background: var(--surface); transition: border-color .2s, box-shadow .2s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
.form-group textarea { resize: vertical; min-height: 90px; }
.checkbox-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.checkbox-row input[type="checkbox"] { width: auto; accent-color: var(--accent); margin-top: 2px; flex-shrink: 0; }

.contact-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; letter-spacing: -.01em; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.info-card:last-child { border-bottom: none; }
.info-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: rgba(13,148,136,.08); color: var(--accent); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }

.info-card h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.info-card a, .info-card p { color: var(--fg); font-size: 15px; line-height: 1.6; }
.social-links { display: flex; gap: 12px; margin-top: 8px; align-items: center; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: transform .2s, opacity .2s, background-color .2s; }
.social-links a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(13,148,136,.2); background-color: rgba(13,148,136,.15); }

/* Contact decorative shapes */
.contatti .geo-circle-md { top: -30px; right: 4%; opacity: .3; }
.contatti .geo-dots { bottom: 12%; left: 6%; }

/* ===== COME RAGGIUNGERCI ===== */
.directions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; align-items: start; }
.transport-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.transport-item { display: flex; gap: 14px; align-items: flex-start; }
.transport-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); background: rgba(13,148,136,.08); color: var(--accent); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.transport-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; letter-spacing: -.01em; }
.transport-item p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.map-wrap { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); height: 400px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* Directions decorative shapes */
.dove .geo-circle-xl { top: -70px; left: -100px; opacity: .2; }
.dove .geo-ring { bottom: 8%; right: 4%; width: 90px; height: 90px; border-color: rgba(13,148,136,.07); }

/* ===== FOOTER ===== */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.8; position: relative; overflow: hidden; }
footer .geo-dots { top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .08; }

footer a { color: var(--accent); }

/* ===== Scroll animation (lightweight, no library) ===== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ===== Success state ===== */
#form-success { display: none; text-align: center; padding: 40px 20px; color: var(--accent); font-size: 18px; font-weight: 600; line-height: 1.7; }

/* ===== Form validation error states ===== */
.error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1) !important;
}
.field-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ===== Responsive — tablet ===== */
@media(min-width:769px)and(max-width:1024px){
  .hero-grid,.about-grid{gap:32px}
  .services-grid{grid-template-columns:repeat(2,1fr)}
  /* Ensure hero stays centered on tablet */
  .hero { text-align:center; }
  .hero-text { max-width:600px; margin:0 auto; text-align:left; }
}

/* ===== Responsive — mobile ===== */
@media(max-width:768px){
  .nav-links{
    display:none;position:absolute;top:64px;left:0;right:0;
    background:rgba(255,255,255,.97);backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);flex-direction:column;
    padding:24px;gap:20px;border-bottom:1px solid var(--border)
  }
  .nav-links.open{display:flex}
  .nav-toggle{display:block}

  /* Stack all grids to single-column */
  .hero-grid,.structure-grid,.about-grid,.contact-grid,.directions-grid{
    grid-template-columns:1fr!important;gap:32px!important
  }
  .small-gallery{grid-template-columns:repeat(2,1fr)!important}

  /* Ensure container doesn't exceed viewport on mobile */
  .container {
    max-width:100%!important;
    width:100%!important;
    padding-left:16px!important;
    padding-right:16px!important;
  }

  /* Consistent section spacing — all sections use same rhythm */
  section{
    padding-top:64px!important;padding-bottom:64px!important;
    padding-left:16px!important;padding-right:16px!important;
    overflow:hidden!important;position:relative
  }
  /* Hero centered consistently on mobile — same as other sections' container */
  .hero {
    text-align:center!important;
    min-height:auto!important;
    display:block!important;
  }
  .hero-grid {
    max-width:100%!important;
    margin-left:16px!important;margin-right:16px!important;
    justify-content:center!important;
  }
  .hero-text { text-align:center!important; max-width:100%!important; }

  /* Ensure service cards fit within viewport on mobile */
  .service-card {
    width:100%!important;
    max-width:100%!important;
    padding:20px!important;
  }

  /* Clamp decorative shapes so they don't push content off-center */
  .geo-blob-lg,.geo-circle-xl,.geo-circle-lg,.geo-concentric,
  .geo-diamond,.geo-cross,.geo-mesh,section::before{max-width:80px!important;max-height:80px!important;width:80px!important;height:80px!important}
  .geo-stripe{width:260px!important}
  /* Ensure shapes don't create dead zone before section titles — unified rules */
  #chi-siamo .geo-concentric, #contatti .geo-concentric { top:5%!important; opacity:.1!important; }
  #chi-siamo .section-label, #chi-siamo .section-title,
  #contatti .section-label, #contatti .section-title {
    margin-top:0!important;
    padding-top:0!important
  }
  #chi-siamo>.container, #contatti>.container { padding-top:0!important; }

  .promo-banner{flex-direction:column;text-align:center;padding:32px 24px!important}
}

/* Print */
@media print {
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .site-nav, .nav-toggle, #form-success { display: none !important; }
  section { padding: 24px 0 !important; page-break-inside: avoid; }
}