/* ==========================================================================
   CASA CHICCO - STILI PRINCIPALI
   Design System: Colori chiari, caldi e rassicuranti + Font morbide ed empatiche
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Variabili & Design Tokens --- */
:root {
  /* Palette Colori Chiari & Caldi */
  --bg-main: #FAF8F5;
  --bg-surface: #FFFFFF;
  --bg-surface-soft: #F4EFEB;
  --bg-surface-hover: #EFE8E2;
  --bg-card: #FFFFFF;
  --bg-card-tint: #F3F8F5;

  /* Colori Primari & Accenti Rassicuranti */
  --primary: #60e03f;          /* Verde Eucalipto / Foresta rassicurante */
  --primary-light: #3D7A68;
  --primary-subtle: #4D8B78;
  --primary-tint: #EAF2EE;
  --primary-tint-hover: #DDEBE5;

  --accent-warm: #ffffff;      /* Terracotta / Corallo morbido */
  --accent-warm-light: #126e09;
  --accent-warm-hover: #3762e3;

  --accent-sun: #E5A84B;       /* Miele / Ambra caloroso */
  --accent-sun-light: #FDF4E5;

  /* Tipografia & Contrasti */
  --text-title: #1caf28;
  --text-body: #3D7A68;
  --text-muted: #f17211;
  --text-subtle: #8E9E96;
  --text-on-dark: #FFFFFF;

  /* Bordi & Linee */
  --border-light: #E8E2D9;
  --border-soft: #DDD6CB;
  --border-focus: #de982f;

  /* Ombreggiature Morbide & Naturali */
  --shadow-xs: 0 2px 4px rgba(36, 51, 44, 0.03);
  --shadow-sm: 0 4px 12px rgba(36, 51, 44, 0.05);
  --shadow-md: 0 10px 30px rgba(36, 51, 44, 0.07);
  --shadow-lg: 0 20px 50px rgba(36, 51, 44, 0.10);
  --shadow-colored: 0 12px 32px rgba(43, 94, 79, 0.14);

  /* Raggi di Arrotondamento Morbidi */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* Font */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transizioni */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Dimensioni */
  --max-width: 1240px;
  --header-height: 80px;
  --topbar-height: 60px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.65;
  font-weight: 800;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* --- Utility Container & Typography --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-title);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: green;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.section-tag.warm {
  background-color: var(--accent-warm-light);
  color: var(--accent-warm);
}

.section-tag.sun {
  background-color: var(--accent-sun-light);
  color: #B4781E;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  color: var(--text-title);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size:medium;
}

/* --- Pulsanti Morbidi & Moderni --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored);
}

.btn-accent {
  background-color: var(--accent-warm);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: var(--accent-warm-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(224, 122, 95, 0.3);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-title);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-soft);
  border-color: var(--border-soft);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary-tint);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   TOP BAR DI EMERGENZA & INFO
   ========================================================================== */
.topbar {
  background-color: var(--primary);
  color: var(--text-on-dark);
  font-size: 0.975rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  z-index: 101;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 20px;
  font-style: bold;
}

.topbar-pulse {
  width: 8px;
  height: 8px;
  background-color: #55E1A7;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(85, 225, 167, 0.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(85, 225, 167, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(85, 225, 167, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(85, 225, 167, 0);
  }
}

.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.92;
}

.topbar-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ==========================================================================
   STICKY HEADER & TOP MENU
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 226, 217, 0.7);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--primary);
}

.logo-icon {
  width: 66px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: transparent
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.525rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.slider-container
{
    width: 800px;
    height: 400px;
    background-color: yellow;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    text-align: center;
    overflow: hidden;
}
.image-container
{
    width: 2400px;
    background-color: red;
    height: 400px;
    clear: both;
    position: relative;
   
    -webkit-transition: left 2s;
    -moz-transition: left 2s;
    -o-transition: left 2s;
    transition: left 2s;
}
#slider-image-1:target ~ .image-container
{
   left: 0px;
}

#slider-image-2:target ~ .image-container
{
   left: -800px;
}
#slider-image-3:target ~ .image-container
{
   left: -1600px;
}



/* Desktop Nav Links */
.nav-links {
  display: contents;
  align-items: center;
  gap: 1.75rem;
  
}

/* The subnavigation menu */
.subnav {
  float: left;
  overflow: hidden;
}


/* Navbar container */
.navbar {
  overflow: hidden;
  background-color: #333;
  font-family: Arial;
  color: var(--text-title);
  font-size: 18px;
}

/* Links inside the navbar */
.navbar a {
  float: left;
  font-size: 18px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}
 

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 18px;
  border: none;
  outline: none;
  color: rgb(2, 106, 2);
  padding: 14px 16px;
  background-color: transparent;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}


.dadove {
  width: 100%;
  overflow: hidden;
}

#gallery {
  display: grid;
  grid-template-columns: 3fr 3fr;

  column-gap: 3rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  
  padding-bottom: 1rem;
}

#organigramma {
   margin-left: 20px;
   margin-right: 20px;
   margin-top: 10px;
}

#popup2 {
  align-items: center;
  width: 70%;
  height: 70%;
  background-color:rgb(247, 244, 244);
  font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: auto;
  text-align: left;
  border-radius: 1rem;
  border-color: #a1a4a0;
  padding-left: 14px;
  font-weight: bold;
  scroll: auto, visible ; 

}

#popup3 {
  align-items: center;
  width: 80%;
  height: 60%;
  background-color:rgb(247, 244, 244);
  font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: auto;
  text-align: left;
  border-radius: 1rem;
  color: #03173d;
  border-color: #a1a4a0;
  padding-left: 15px;
  font-style: unset;
  scroll: auto, visible; 
}


#popup2 [popover] {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, CanvasText 20%, transparent);
  background: Canvas;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  max-width: 320px;
}

#popup2 {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

/* quando è mostrato, torna “in posizione” */
#popup2:popover-open {
  opacity: 1;
  transform: translateY(0);
}

.popup3 h2   {
text-align: center;
}

#mapcoromoto {
align-content: right;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial;
}

.header {
  text-align: center;
  padding: 32px;
}

.row {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create four equal columns that sits next to each other */
.column {
  -ms-flex: 25%; /* IE10 */
  flex: 25%;
  max-width: 35%;
  padding: 10px 20px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}


#desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1rem;
  text-align: center;
}

#mapContainer {
  width: 100%;
  height: 400px;
  margin-top: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}


/* Pulsante di apertura */
#openModal {
  padding: 14px 16px;
  background-color: transparent;
  color: rgb(2, 106, 2);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

/* Overlay scuro */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
/* Finestra modale */
.modal {
  background: #fff;
  padding: 30px;
  width: 70%;
  height: 50%;
  border-radius: 10px;
  text-align: left;
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* Pulsante X di chiusura */
.closeBtn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}
/* Pulsante chiudi */
#closeModal {
  margin-top: 20px;
  padding: 10px 18px;
  background: #ef4444;
  color: white;
  border: none;
  visibility: hidden;
  border-radius: 6px;
  cursor: pointer;
}

/* Animazione */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Add a red background color to navbar links on hover 
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: rgb(191, 255, 0);
}*/

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: green;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}


/* The navigation menu */
.navbar {
  overflow: hidden;
  background-color: #27b183;
}

/* Navigation links */
.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* The subnavigation menu */
.subnav {
  float: left;
  overflow: hidden;
}

/* Subnav button */
.subnav .subnavbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: rgb(1, 107, 59);
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* Add a red background color to navigation links on hover */
.navbar a:hover, .subnav:hover .subnavbtn {
  background-color: rgb(6, 115, 26);
}

/* Style the subnav content - positioned absolute */
.subnav-content {
  display: none;
  position: absolute;
  left: 0;
 background-color: rgb(255, 255, 255);
}
  width: 100%;
  z-index: 1;


/* Style the subnav links */
.subnav-content a {
  float: left;
  color: white;
  text-decoration: none;
}

/* Add a grey background color on hover */
.subnav-content a:hover {
  background-color: #eee;
  color: black;
}

/* When you move the mouse over the subnav container, open the subnav content */
.subnav:hover .subnav-content {
  display: block;
}




.nav-link {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-body);
  position: relative;
  padding: 0.5rem 0;
    color: rgb(2, 106, 2);

}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header CTAs */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}


/* Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-title);
  border-radius: var(--radius-xs);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
}

.hamburger-box {
  width: 26px;
  height: 20px;
  position: relative;
  display: inline-block;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 26px;
  height: 2.5px;
  background-color: var(--text-title);
  border-radius: 4px;
  position: absolute;
  transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  display: block;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

.menu-toggle.is-active .hamburger-inner {
  transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.menu-toggle.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-title);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-title);
  padding: 0.4rem 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(30, 45, 38, 0.4);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4rem 0 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  position: relatve;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.5rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-warm);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.4rem, 2.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--text-title);
  margin-bottom: 1.5rem;
}

.hero-title span.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-title);
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Hero Media & Image Card */
.hero-media-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--bg-surface);
  background-color: var(--bg-surface-soft);
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

/* Floating Card Overlays */
.floating-badge-free {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-icon-warm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--accent-warm-light);
  color: var(--accent-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-badge-free h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.floating-badge-free p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.floating-badge-distance {
  position: absolute;
  bottom: -1.5rem;
  left: 2rem;
  background-color: var(--bg-surface);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 320px;
}

.badge-icon-green {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ==========================================================================
   METRICS / IMPACT STRIP
   ========================================================================== */
.impact-strip {
  padding: 2.5rem 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.metric-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.metric-icon-wrap.warm {
  background-color: var(--accent-warm-light);
  color: var(--accent-warm);
}

.metric-icon-wrap.sun {
  background-color: var(--accent-sun-light);
  color: var(--accent-sun);
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* ==========================================================================
   CHI SIAMO & I NOSTRI VALORI
   ========================================================================== */
.about-section {
  padding: 6rem 0;
  position: relative;
}

.about-intro-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 4rem;
  
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: right;
}

.about-intro-text h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--text-title);
}

.about-intro-text p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.quote-highlight-card {
  background: linear-gradient(145deg, var(--primary-tint) 0%, #FFFFFF 100%);
  border: 1px solid var(--border-light);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.quote-highlight-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
}

.quote-highlight-card p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
  margin-bottom: 1rem;
  position: relative;
}

.quote-author {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Griglia Pilastri */
.pillars-grid {
  display: grid;
  gap: 1.75rem;
}

.pillar-card {
  background-color:#edeee7;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.pillar-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.pillar-card:nth-child(2) .pillar-icon-box {
  background-color: var(--accent-warm-light);
  color: var(--accent-warm);
}

.pillar-card:nth-child(3) .pillar-icon-box {
  background-color: var(--accent-sun-light);
  color: var(--accent-sun);
}

.pillar-card:nth-child(4) .pillar-icon-box {
  background-color: #E8EEF5;
  color: #386FA4;
}

.pillar-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   SPAZI & SERVIZI (GALLERIA INTERATTIVA)
   ========================================================================== */
.spaces-section {
  padding: 6rem 0;
  background-color: var(--bg-surface-soft);
  position: relative;
}

.spaces-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  background-color: #FFFFFF;
  border-color: var(--border-soft);
  transform: translateY(-1px);
}

.tab-btn.active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.space-showcase-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.space-image-container {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.space-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.space-showcase-card:hover .space-image-container img {
  transform: scale(1.02);
}

.space-tag-floating {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.space-content-panel {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.space-content-panel h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  color: var(--text-title);
}

.space-content-panel p {
  color: var(--text-muted);
  font-size: 1.025rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.space-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 500;
}

.feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   COME RICHIEDERE ACCOGLIENZA (ROADMAP & GUIDA)
   ========================================================================== */
.request-section {
  padding: 6rem 0;
  position: relative;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  margin-bottom: 4rem;
}

.step-card {
  background-color: var(--bg-surface);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-badge-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 16px rgba(43, 94, 79, 0.2);
}

.step-card:nth-child(2) .step-badge-num {
  background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-warm-hover) 100%);
  box-shadow: 0 6px 16px rgba(224, 122, 95, 0.25);
}

.step-card:nth-child(3) .step-badge-num {
  background: linear-gradient(135deg, var(--accent-sun) 0%, #D49437 100%);
  box-shadow: 0 6px 16px rgba(229, 168, 75, 0.25);
}

.step-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.step-note {
  margin-top: auto;
  font-size: 0.825rem;
  color: var(--primary);
  background-color: var(--primary-tint);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.cta-box-request {
  background: linear-gradient(135deg, #FAF4EB 0%, #F5ECE0 100%);
  border: 1px solid #E4D8C8;
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
}

.cta-box-request-text h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.cta-box-request-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta-box-request-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   COME SOSTENERCI (DONAZIONI & 5X1000)
   ========================================================================== */
.support-section {
  padding: 6rem 0;
  background-color: var(--bg-surface-tint);
  position: relative;
}

.donation-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

/* Donation Box */
.donation-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.donation-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.donation-card > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.donation-frequencies {
  display: flex;
  background-color: var(--bg-surface-soft);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
  gap: 0.25rem;
}

.freq-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.freq-btn.active {
  background-color: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.donation-amounts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.amount-btn {
  padding: 1.2rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.amount-btn:hover {
  border-color: var(--primary-light);
  background-color: var(--primary-tint);
}

.amount-btn.active {
  border-color: var(--primary);
  background-color: var(--primary-tint);
  box-shadow: 0 0 0 3px rgba(43, 94, 79, 0.15);
}

.amount-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.amount-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 500;
}

.custom-amount-wrapper {
  margin-bottom: 2rem;
  position: relative;
}

.custom-amount-input {
  width: 100%;
  padding: 0.9rem 1.25rem 0.9rem 2.75rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-title);
  transition: border-color var(--transition-fast);
}

.custom-amount-input:focus {
  outline: none;
  border-color: var(--primary);
}

.currency-symbol {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.impact-message-box {
  background-color: var(--bg-surface-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
}

.impact-message-box svg {
  color: var(--primary);
  flex-shrink: 0;
}

.impact-message-box p {
  font-size: 0.925rem;
  color: var(--text-body);
  font-weight: 500;
}

/* 5x1000 Card & Volontariato */
.side-support-cards {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.cinque-mille-card {
  background: linear-gradient(135deg, #FAF2E8 0%, #FFFFFF 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #EADBCC;
  position: relative;
  overflow: hidden;
}

.cinque-mille-card h4 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
  color: var(--text-title);
}

.cinque-mille-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cf-box {
  background-color: var(--bg-surface);
  border: 1.5px dashed var(--accent-sun);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cf-info {
  display: flex;
  flex-direction: column;
}

.cf-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cf-code {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: 0.08em;
}

.btn-copy-cf {
  background-color: var(--accent-sun-light);
  color: #B4781E;
  border: 1px solid rgba(229, 168, 75, 0.3);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-copy-cf:hover {
  background-color: var(--accent-sun);
  color: #FFFFFF;
}

.volunteer-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.volunteer-card h4 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.volunteer-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   TESTIMONIANZE / STORIE DI FAMIGLIE
   ========================================================================= */
.stories-section {
  padding: 6rem 0;
  background-color: var(--bg-surface);
  position: relative;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.story-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  display: flex;
  padding-top: 10px;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.story-rating {
  color: var(--accent-sun);
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.story-quote {
  font-size: 1.025rem;
  line-height: 1.65;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 2rem;
}

.story-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-tint) 0%, var(--accent-warm-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}

.author-name {
  font-weight: 700;
  color: var(--text-title);
  font-size: 0.95rem;
}

.author-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */
.faq-section {
  padding: 6rem 0;
  background-color: var(--bg-main);
}

.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-title);
  cursor: pointer;
  text-align: left;
}

.faq-trigger:hover {
  color: var(--primary);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: var(--primary-tint);
  color: var(--primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-content {
  padding: 0 1.75rem 1.5rem 1.75rem;
}

.faq-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* ==========================================================================
   CONTATTI & DOVE SIAMO
   ========================================================================== */
.contact-section {
  padding: 6rem 0;
  background-color: var(--bg-surface);
  flex-direction: column;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;

}

.contact-grid {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  justify-content: space-between;
  flex-direction: column;
}

.contact-info-panel h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.contact-info-panel > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.iban-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  font-family: Krungthep, sans-serif;
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-detail-card p,
.contact-detail-card a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-detail-card a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Ospedali Convenzionati & Vicini */
.hospitals-near-box {
  background: linear-gradient(135deg, var(--primary-tint) 0%, #FFFFFF 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.hospitals-near-box h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hospital-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hospital-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Contact Form */
.contact-form-panel {
  background-color: var(--bg-main);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}



.contact-form-panel h4 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.contact-form-panel > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-title);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-title);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 94, 79, 0.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.form-checkbox-label input {
  margin-top: 0.2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #197029;
  color: #D2DCD7;
  padding: 5rem 0 2rem 0;
  position: relative;
}

#emailfooter {
text-align: right;

}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .logo-brand {
  color: #FFFFFF;
}

.footer-brand .logo-sub {
  color: #A1B5AC;
}

.footer-about-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #A1B5AC;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-column h5 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #A1B5AC;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid #364B42;
  background-color: #24352D;
  color: #FFFFFF;
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: #55E1A7;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #2B3D34;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #7E9389;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #7E9389;
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   MODALE INTERATTIVA: RICHIEDI ACCOGLIENZA
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 32, 27, 0.6);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-surface);
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-surface-soft);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--accent-warm-light);
  color: var(--accent-warm);
}

.modal-header {
  margin-bottom: 1.75rem;
}

.modal-header h3 {
  font-size: 1.75rem;
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}


/* Toast Feedback */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 400;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating Scroll-to-top */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-3px);
}


/* Toast Feedback */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 400;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating Scroll-to-top */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-3px);
}


/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-media-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .space-showcase-card {
    grid-template-columns: 1fr;
  }

  .space-image-container {
    min-height: 340px;
  }

  .about-intro-box {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }

  .donation-grid {
    grid-template-columns: 1fr;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }
  

  .menu-toggle {
    display: flex;
  }

  .topbar-content {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .cta-box-request {
    flex-direction: column;
    text-align: center;
    padding: 2.25rem;
  }

  .cta-box-request-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-box-request-actions .btn {
    width: 100%;
  }
  

}

@media (max-width: 640px) {
  .hero-section {
    padding: 2.5rem 0 3.5rem 0;
  }

 #dadovemap
  {
   display: none;
  }
  #amici_w
  {
    display: contents;
  
  }
  

  .hero-trust-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .donation-amounts-grid {
    grid-template-columns: 1fr;
  }

  .donation-card,
  .contact-form-panel {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .floating-badge-distance {
    left: 1rem;
    right: 1rem;
    bottom: -1rem;
    max-width: none;
  }
.center {
  margin-left: 10px;
  margin-right: 10px;
}
}

