/* Font self-hosted (Inter, SIL Open Font License 1.1) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700.woff2") format("woff2");
}

/* Reset e Variabili */
:root {
  --primary-color: #2d8659;
  --primary-dark: #1f5d3f;
  --primary-darker: #163d29;
  --primary-light: #4da375;
  --secondary-color: #f39c12;
  --secondary-light: #f5a623;
  --text-dark: #1b2a38;
  --text-light: #5f6c6d;
  --bg-light: #f3f8f4;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --border-soft: rgba(27, 42, 56, 0.08);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 28, 0.06);
  --shadow: 0 8px 24px rgba(16, 40, 28, 0.07);
  --shadow-hover: 0 18px 44px rgba(16, 40, 28, 0.14);
  --gradient-primary: linear-gradient(135deg, #2d8659 0%, #1f5d3f 100%);
  --transition: all 0.3s ease;
}

html {
  -webkit-text-size-adjust: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header e Navigazione */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.logo {
  flex-shrink: 0;
}

.logo .logo-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Skip link (accessibilità: bypass blocks) */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  z-index: 2000;
  background: var(--primary-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 6px 0;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown "Soluzioni" */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-toggle .caret {
  transition: transform 0.25s ease;
}

.has-dropdown:hover .dropdown-toggle .caret,
.has-dropdown.open .dropdown-toggle .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 250px;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

/* Invisible bridge so the menu doesn't close when crossing the gap */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-link:hover,
.dropdown-link:focus-visible,
.dropdown-link.active {
  background: rgba(45, 134, 89, 0.1);
  color: var(--primary-dark);
}

/* CTA button in the navbar */
.nav-cta-item {
  margin-left: 0.25rem;
}

.btn-nav-cta {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-dark);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
  transition: var(--transition);
}

.btn-nav-cta:hover {
  background: var(--secondary-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(243, 156, 18, 0.4);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    bottom/cover no-repeat;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* Foto di sfondo: piu' luminosa e meno satura */
.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('immagini/sfondo sito Stefano.jpeg') center/cover no-repeat;
  filter: saturate(0.72) brightness(1.18);
}

/* Velo verde per la leggibilita' del testo (non filtrato) */
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(16, 40, 28, 0.72) 0%,
    rgba(31, 93, 63, 0.5) 60%,
    rgba(31, 93, 63, 0.34) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 0 20px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  animation: fadeInUp 1s ease 0.05s both;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  font-size: 1.5rem;
  max-width: 640px;
  margin: 0 auto 2.25rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.2s both;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.35s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--text-dark);
  box-shadow: 0 6px 18px rgba(243, 156, 18, 0.35);
}

.btn-primary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(243, 156, 18, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.75rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: var(--secondary-color);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  padding: 4rem 0;
  background: var(--bg-white);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-text h3 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.content-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.6rem 0;
  padding-left: 2.5rem;
  position: relative;
  color: var(--text-dark);
  font-size: 1.02rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 134, 89, 0.12);
  color: var(--primary-dark);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}

.content-image {
  position: relative;
}

.placeholder-image {
  width: 100%;
  height: 400px;
  background: none;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 500;
}

.placeholder-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.drone-placeholder {
  flex-direction: column;
  gap: 1rem;
  background: var(--gray-100, #f3f4f6);
  border: 2px dashed var(--gray-300, #d1d5db);
  border-radius: 12px;
  color: var(--gray-500, #6b7280);
}

.drone-placeholder svg {
  opacity: 0.4;
}

.drone-placeholder p {
  font-size: 0.95rem;
  margin: 0;
}

/* Guarantee Seals */
.guarantee-seals {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.seal-badge {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.seal-badge:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}


/* Contact Section */
.contact-section {
  background: var(--bg-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-item a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-item p {
  color: var(--text-light);
  margin: 0;
}

/* Contact Form */
.contact-form {
  background: var(--bg-light);
  padding: 2.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-500);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.35);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group-privacy {
  margin-top: 0.5rem;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555;
  cursor: pointer;
  font-weight: 400;
}

.privacy-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Honeypot anti-spam: nascosto fuori schermo (non display:none, cosi' i bot lo compilano) */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 5px;
  display: none;
}

.form-status.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* PDF Section */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pdf-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pdf-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(45, 134, 89, 0.35);
}

.pdf-icon {
  width: 76px;
  height: 76px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(31, 93, 63, 0.3);
  transition: var(--transition);
}

.pdf-card:hover .pdf-icon {
  transform: translateY(-2px) rotate(-4deg);
}

.pdf-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.pdf-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-dark);
  color: white;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-pdf:hover {
  background: #163d29;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-pdf svg {
  transition: var(--transition);
}

.btn-pdf:hover svg {
  transform: translateY(2px);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 0 1.5rem;
  border-top: 4px solid var(--primary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.footer-legal {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-legal .sep {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal .piva {
  letter-spacing: 0.05em;
}

/* Pagine legali (privacy / cookie) */
.legal-body {
  background: var(--bg-light);
}

.legal-main {
  max-width: 860px;
  margin: 2.5rem auto 4rem;
  padding: 3rem;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-main h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.legal-main h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.9rem;
  border-radius: 2px;
  background: var(--secondary-color);
}

.legal-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0.9rem 0 2.5rem;
}

@media (max-width: 600px) {
  .legal-main {
    padding: 1.75rem 1.25rem;
    margin: 1.5rem 12px 3rem;
  }
}

.legal-main h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 2.25rem 0 0.75rem;
}

.legal-main p,
.legal-main li {
  color: #333;
  line-height: 1.8;
}

.legal-main ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-main a {
  color: var(--primary-dark);
}

.legal-note {
  background: var(--bg-light);
  border-left: 4px solid var(--secondary-color);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-grid.reverse {
    direction: ltr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    visibility: hidden;
    flex-direction: column;
    background: var(--bg-white);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--shadow);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
    padding: 1rem 0;
  }

  .nav-link {
    display: block;
    padding: 0.5rem 2rem;
  }

  /* Dropdown becomes an inline accordion inside the mobile menu */
  .dropdown-toggle {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 2rem;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(45, 134, 89, 0.05);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown-menu::before {
    display: none;
  }

  .has-dropdown.open > .dropdown-menu {
    max-height: 700px;
  }

  .dropdown-menu li {
    width: 100%;
    padding: 0;
  }

  .dropdown-link {
    text-align: center;
    padding: 0.75rem 2rem;
    border-radius: 0;
    white-space: normal;
  }

  .nav-cta-item {
    margin: 0.5rem 0 0;
  }

  .hero {
    height: 460px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .pdf-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Sistema a Secchio subsection */
.secchio-block {
  margin-top: 4rem;
  padding: 3rem 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(45, 134, 89, 0.08),
    rgba(45, 134, 89, 0.03)
  );
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.secchio-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 968px) {
  .secchio-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .secchio-block {
    padding: 1.5rem;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: var(--primary-color);
  color: white;
}

/* Focus visibile (accessibilità: 2.4.7) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn-pdf:focus-visible,
.nav-link:focus-visible,
.mobile-menu-toggle:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.privacy-label input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Rispetto delle preferenze di movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
