/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: #f8f5f0;
  color: #2d3e2b;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 50px; /* Compensa l'altezza della navbar fissa */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== CONTENUTO PRINCIPALE ===== */
.page-content {
  flex: 1;
}

/* ===== COLORI OLIVA ===== */
:root {
  --oliva-scuro: #3a5c3a;
  --oliva-chiaro: #7b9e7b;
  --oliva-sabbia: #e8e0d5;
  --oliva-oro: #b8a27a;
  --verde-bottiglia: #1e3b1e;
  --bianco-crema: #fcf9f5;
  --ombra-dolce: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin-bottom: 1.5rem;
  color: var(--verde-bottiglia);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--oliva-oro);
  border-radius: 4px;
}

.section-title-center {
  text-align: center;
}

.section-title-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== HEADER / NAV ===== */
.navbar {
  background: rgba(252, 249, 245, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  padding: 0.6rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(184, 162, 122, 0.15);
  transition: box-shadow 0.3s ease;
}

/* Ombra più pronunciata quando si scrolla */
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 600;
  color: var(--verde-bottiglia);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo i {
  color: var(--oliva-oro);
  font-size: 1.1em;
}

.logo span {
  font-weight: 700;
  color: var(--oliva-chiaro);
  font-size: 1em;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--oliva-scuro);
  align-items: center;
}

.nav-links a {
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  position: relative;
}

.nav-links a:hover {
  color: var(--oliva-oro);
  border-bottom-color: var(--oliva-oro);
}

.hamburger {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--verde-bottiglia);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(145deg, #f0ebe2 0%, #e2d9cb 100%);
  padding: 2.5rem 0 3.5rem;
  border-radius: 0 0 40px 40px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "🫒";
  font-size: 12rem;
  opacity: 0.04;
  position: absolute;
  right: -20px;
  bottom: -40px;
  transform: rotate(12deg);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.15;
  color: var(--verde-bottiglia);
  margin-bottom: 1rem;
}

.hero-text h1 i {
  color: var(--oliva-oro);
  font-size: 0.85em;
  margin-right: 0.2rem;
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #3d543a;
  max-width: 500px;
  margin-bottom: 1.8rem;
}

/* ===== HERO ACTIONS (BADGE + PULSANTE STESSA GRANDEZZA) ===== */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--oliva-scuro);
  color: white;
  padding: 0.5rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(58, 92, 58, 0.2);
  min-height: 48px;
  white-space: nowrap;
}

.btn-storia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.5rem 1.8rem;
  border-radius: 60px;
  font-weight: 700;
  color: var(--verde-bottiglia);
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid rgba(184, 162, 122, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  min-height: 48px;
  white-space: nowrap;
}

.btn-storia i:first-child {
  color: var(--oliva-oro);
  font-size: 1rem;
}

.btn-storia:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--oliva-oro);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* ===== HERO VIDEO ===== */
.hero-video-wrapper {
  border-radius: 60px 20px 60px 20px;
  overflow: hidden;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
  width: 100%;
  background: #2d3e2b;
  position: relative;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Loader del video */
.video-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2d3e2b;
  color: white;
  z-index: 2;
  gap: 0.8rem;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.5s ease;
}

.video-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-loader i {
  font-size: 2rem;
  color: var(--oliva-oro);
}

/* ===== PULSANTE AUDIO ===== */
.btn-audio {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 60px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 5;
}

.btn-audio:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 46, 26, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-contenuto {
  background: var(--bianco-crema);
  border-radius: 40px 16px 40px 16px;
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.4rem 2.8rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(184, 162, 122, 0.15);
  position: relative;
  animation: slideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-chiudi {
  position: sticky;
  top: 0;
  float: right;
  background: var(--oliva-sabbia);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 60px;
  font-size: 1.4rem;
  color: var(--verde-bottiglia);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  margin-left: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.modal-chiudi:hover {
  background: var(--oliva-oro);
  color: white;
  transform: rotate(90deg);
}

.modal-contenuto h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 1.2rem;
  color: var(--verde-bottiglia);
  display: inline-block;
}

.modal-contenuto h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--oliva-oro);
  border-radius: 4px;
}

.modal-contenuto h2 i {
  color: var(--oliva-oro);
  margin-right: 0.4rem;
}

.modal-contenuto p {
  margin-bottom: 1rem;
  color: #2d3e2b;
  font-size: 0.98rem;
  line-height: 1.7;
}

.modal-contenuto p:last-of-type {
  margin-bottom: 0;
}

.modal-contenuto strong {
  color: var(--verde-bottiglia);
}

.modal-contenuto .firma {
  margin-top: 1.2rem;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2em;
  color: var(--oliva-scuro);
  border-top: 1px solid rgba(184, 162, 122, 0.2);
  padding-top: 1.2rem;
}

.modal-contenuto .firma i {
  color: var(--oliva-oro);
  margin-right: 0.3rem;
}

/* ===== SCROLLBAR MODAL ===== */
.modal-contenuto::-webkit-scrollbar {
  width: 18px; /* larghezza totale, includendo il bordo */
}

.modal-contenuto::-webkit-scrollbar-track {
  background: transparent;
  border-right: 10px solid transparent; /* <-- spazio a destra della barra */
}

.modal-contenuto::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--oliva-chiaro), var(--oliva-scuro));
  border-radius: 40px;
  border-right: 15px solid transparent; /* <-- sposta la barra a sinistra */
  background-clip: padding-box; /* <-- importante! */
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== GALLERIA ===== */
.gallery {
  padding: 2.5rem 0 1.5rem;
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.gallery-item {
  background: white;
  border-radius: 30px 10px 30px 10px;
  overflow: hidden;
  box-shadow: var(--ombra-dolce);
  aspect-ratio: 1/1;
  background-color: #e6dfd4;
  transition: box-shadow 0.3s ease;
  cursor: default;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-item:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.gallery-item span {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 59, 30, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.25rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  color: white;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  pointer-events: none;
  transition: background 0.3s ease;
}

.gallery-item:hover span {
  background: rgba(30, 59, 30, 0.85);
}

/* ===== CERTIFICAZIONI ===== */
.certificazioni {
  padding: 3rem 0;
  background: #fcf9f5;
  margin-bottom: 0;
}

.cert-subtitle {
  color: #4d644a;
  max-width: 700px;
  margin: 0.5rem auto 2.5rem;
  text-align: center;
  font-size: 1.05rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.cert-card {
  background: white;
  padding: 1.8rem 1.5rem;
  border-radius: 30px 12px 30px 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #ede7dd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.cert-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: white;
}

.cert-icon-dop {
  background: #3a5c3a;
}

.cert-icon-igp {
  background: #7b9e7b;
}

.cert-icon-bio {
  background: #b8a27a;
}

.cert-icon-quality {
  background: #1e3b1e;
}

.cert-card h3 {
  font-size: 1.2rem;
  color: var(--verde-bottiglia);
  margin: 0;
}

.cert-card p {
  font-size: 0.95rem;
  color: #3d543a;
  line-height: 1.6;
  margin: 0;
}

/* ===== CERT FOOTER CON DOWNLOAD ===== */
.cert-footer {
  margin-top: 2.5rem;
  padding: 1.2rem 2rem;
  background: #e8e0d5;
  border-radius: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e3b1e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
  text-align: center;
}

.cert-footer i {
  color: #3a5c3a;
  margin-right: 0.8rem;
}

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--verde-bottiglia);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 60px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-download-pdf i {
  color: white;
  margin-right: 0;
}

.btn-download-pdf:hover {
  background: #2b4f2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== PRODOTTI ===== */
.products {
  padding: 2.5rem 0;
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 40px 16px 40px 16px;
  padding: 1.6rem 1.2rem 1.8rem;
  box-shadow: var(--ombra-dolce);
  transition: all 0.3s ease;
  border: 1px solid #ede7dd;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(58, 92, 58, 0.08);
  border-color: var(--oliva-chiaro);
}

.card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 30px 8px 30px 8px;
  margin-bottom: 1rem;
  background: #e8e0d5;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--verde-bottiglia);
}

.card p {
  color: #5a6f55;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.price-tag {
  background: var(--oliva-sabbia);
  display: inline-block;
  padding: 0.25rem 1.6rem;
  border-radius: 60px;
  font-weight: 700;
  color: var(--oliva-scuro);
  font-size: 0.7rem;
}

/* ===== MAPPA & CONTATTI ===== */
.contact-map {
  padding: 2.5rem 0 3.5rem;
  background: var(--bianco-crema);
  border-radius: 60px 60px 0 0;
  margin-top: 1rem;
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.map-wrapper {
  background: #d6cdbc;
  border-radius: 40px 16px 40px 16px;
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--ombra-dolce);
  width: 100%;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: white;
  padding: 2rem 1.8rem;
  border-radius: 40px 16px 40px 16px;
  box-shadow: var(--ombra-dolce);
  border: 1px solid #e6ddd2;
  justify-content: center;
  width: 100%;
}

.contact-info h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--verde-bottiglia);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-info h3 i {
  color: var(--oliva-oro);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.contact-item i {
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  background: var(--oliva-sabbia);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oliva-scuro);
  font-size: 1rem;
}

/* ===== SOCIAL + SHOPIFY ===== */
.social-shop {
  padding: 2rem 0 3rem;
  background: #f0ebe2;
  margin-bottom: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 600;
  color: var(--verde-bottiglia);
  background: white;
  padding: 0.6rem 1.4rem;
  border-radius: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid #ddd2c2;
  transition: all 0.25s ease;
}

.social-links a i {
  font-size: 1.4rem;
}

.social-links a:hover {
  color: var(--oliva-oro);
  border-color: var(--oliva-oro);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.shopify-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.shopify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 600;
  background: var(--verde-bottiglia) !important;
  color: white !important;
  border: none !important;
  padding: 0.6rem 1.4rem;
  border-radius: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.shopify-btn i {
  font-size: 1.4rem;
}

.shopify-btn:hover {
  background: #2b4f2b !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
.footer {
  background: #1e2e1a;
  color: #cfd8c9;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 4px solid var(--oliva-oro);
  margin: 0;
  width: 100%;
}

.footer i {
  color: var(--oliva-oro);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-video-wrapper {
    max-width: 500px;
    margin: 0 auto;
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .map-wrapper {
    min-height: 220px;
  }

  .map-wrapper iframe {
    min-height: 220px;
  }

  .modal-contenuto {
    padding: 1.8rem 1.5rem;
    max-width: 95%;
  }
}

@media (max-width: 700px) {
  body {
    padding-top: 50px; /* Riduci per schermi più piccoli */
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0 0.5rem;
    background: var(--bianco-crema);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero-text h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .social-links a {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }

  .social-links a i {
    font-size: 1.2rem;
  }

  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cert-footer {
    flex-direction: column;
    padding: 1.2rem 1.5rem;
  }

  .hero-badge,
  .btn-storia {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
    min-height: 42px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 40px;
  }

  .container {
    padding: 0 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .gallery-item {
    padding: 0;
  }

  .gallery-item span {
    font-size: 0.75rem;
    padding: 0.2rem 0.8rem;
    bottom: 0.6rem;
  }

  .hero {
    padding: 1.8rem 0 2.5rem;
    border-radius: 0 0 30px 30px;
  }

  .hero-video-wrapper {
    min-height: 150px;
    aspect-ratio: 4/3;
  }

  .btn-audio {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    bottom: 0.7rem;
    left: 0.7rem;
  }

  .contact-info {
    padding: 1.5rem 1.2rem;
  }

  .social-links {
    gap: 0.8rem;
  }

  .social-links a {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  .social-links a i {
    font-size: 1.1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .navbar {
    padding: 0.4rem 0;
  }

  .hero-badge,
  .btn-storia {
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
    min-height: 38px;
  }

  .hero-actions {
    gap: 0.5rem;
  }

  .modal-contenuto {
    padding: 1.2rem 1rem;
    max-width: 98%;
    border-radius: 30px 10px 30px 10px;
  }

  .modal-contenuto p {
    font-size: 0.88rem;
  }

  .modal-chiudi {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-footer {
    flex-direction: column;
    padding: 1rem 1.2rem;
    font-size: 0.8rem;
  }

  .btn-download-pdf {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .contact-grid {
    gap: 1.2rem;
  }
  
  .contact-info {
    padding: 1.2rem 1rem;
  }
}

/* ===== TOUCH FRIENDLY ===== */
@media (hover: none) {
  .card:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .gallery-item:hover {
    box-shadow: var(--ombra-dolce);
  }

  .gallery-item:hover span {
    background: rgba(30, 59, 30, 0.7);
  }

  .social-links a:hover {
    transform: none;
  }

  .nav-links a {
    padding: 0.5rem 0;
    border-bottom-width: 3px;
  }

  .btn-storia:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(184, 162, 122, 0.3);
  }

  .btn-audio:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.5);
  }

  .cert-card:hover {
    transform: none;
  }

  .btn-download-pdf:hover {
    transform: none;
  }
}