:root {
  --primary: #a3383a;
  --secondary: #1f4b8f;
  --dark: #1d1d1d;
  --light: #f8f7f5;
  --muted: #6b6b6b;
  --radius: 16px;
}

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

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--dark);
  background: #ffffff;
  line-height: 1.6;
}

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

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

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #eee;
}
/* BANNER SCORREVOLE IN ALTO */
.promo-banner {
  background: linear-gradient(90deg, #a3383a 0%, #c94c4e 100%);
  color: #ffffff;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 12px 0;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(163, 56, 58, 0.3);
  z-index: 1000;
}

.promo-track {
  display: flex;
  align-items: center;
  gap: 50px;
  animation: promo-scroll 20s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.promo-item {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
}

.promo-item::after {
  content: "•";
  color: #ffd700;
  font-size: 1.2rem;
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes promo-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pausa al passaggio del mouse */
.promo-banner:hover .promo-track {
  animation-play-state: paused;
}

/* Effetto pulsante sul banner */
.promo-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 100%);
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive per il banner */
@media (max-width: 900px) {
  .promo-banner {
    padding: 10px 0;
    font-size: 0.8rem;
  }
  
  .promo-track {
    gap: 40px;
  }
  
  .promo-item::after {
    right: -25px;
    font-size: 1rem;
  }
}

@media (max-width: 700px) {
  .promo-banner {
    padding: 8px 0;
    font-size: 0.7rem;
  }
  
  .promo-track {
    gap: 30px;
    animation-duration: 15s; /* Più veloce su mobile */
  }
  
  .promo-item::after {
    right: -20px;
    font-size: 0.9rem;
  }
}

@keyframes promo-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33%);
  }
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

/* LOGO SVG IN ALTO A SINISTRA */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* LOGO PNG IN ALTO A SINISTRA */
/* LOGO PNG - Riduzione bordo bianco */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  height: 58px; /* Altezza fissa per contenitore */
}

.logo-img {
  width: 210px;
  height: 68px; /* Altezza leggermente maggiore del contenitore */
  object-fit: cover; /* Taglia bordi bianchi superiori/inferiori */
  margin-left: -5px; /* Riduci bordo sinistro */
  margin-right: -5px; /* Riduci bordo destro */
}

.nav {
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  font-weight: 500;
}

.nav-menu .nav-cta {
  display: none;
}

.nav-menu a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: #8a2d2f;
}

.btn-secondary {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(163, 56, 58, 0.1);
}

.hero {
  background: linear-gradient(120deg, #fef7f7 0%, #f4f7ff 100%);
  padding: 5rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 3rem;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  text-align: center;
}

.hero-highlights strong {
  display: block;
  font-size: 1.5rem;
}

.hero-image,
.about-image,
.benefits-image {
  border-radius: var(--radius);
  min-height: 360px;
  background-size: cover;
  background-position: center;
}

.hero-image {
  background-image: url("fotoinizio.png");
}

@media (max-width: 900px) {
  .hero-image {
    background-position: center top;
  }
}

.about-image {
  background-image: url("chi-siamo.png");
}

.benefits-image {
  background-image: url("https://images.unsplash.com/photo-1502005229762-cf1b2da7c5d6?auto=format&fit=crop&w=1000&q=80");
}

.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header p {
  color: var(--muted);
}

.section-header.back-link {
  text-align: left;
}

.section-header.back-link .btn-secondary {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(8, 12, 18, 0.25);
  text-align: center;
}

.modal h3 {
  margin-bottom: 0.75rem;
}

.modal p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.values {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.values ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.service-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}


.service-card {
  display: flex;
  flex-direction: column;
}

.card img {
  border-radius: 12px;
  margin-bottom: 1rem;
  height: 170px;
  object-fit: cover;
  width: 100%;
}

.fit-contain {
  object-fit: contain;
  background: #ffffff;
}

.service-detail .card {
  padding: 1.75rem;
}

.service-detail .card img {
  height: 280px;
  object-fit: contain;
  background: #ffffff;
}

.zoomable {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1100;
}

.image-lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: min(960px, 92vw);
  max-height: 82vh;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.image-lightbox.tende img {
  width: min(900px, 92vw);
  aspect-ratio: 1391 / 817;
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
}

.benefits {
  background: var(--light);
}

.benefits-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  border-radius: 14px;
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.partnership {
  background: var(--light);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.partner-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  color: var(--secondary);
}

.quote {
  background: linear-gradient(120deg, #fff9f7 0%, #f5f9ff 100%);
}

.checklist {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.checklist li::before {
  content: "✓";
  color: var(--primary);
  margin-right: 0.5rem;
}

.form {
  display: grid;
  gap: 1rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font: inherit;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.contact-details h3 {
  margin-bottom: 0.5rem;
  margin-top: 0.25rem;
}

.contact-details div + div {
  margin-top: 0.5rem;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.footer {
  background: linear-gradient(135deg, #0b0b0b 0%, #151515 100%);
  color: #f5f5f5;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-logo {
  width: 60px;
  margin-bottom: 1rem;
}

.footer-brand {
  font-weight: 600;
}

.footer h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer a {
  color: #f5f5f5;
  opacity: 0.9;
}

.footer a:hover,
.footer a:focus {
  opacity: 1;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}


.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  color: #b0b0b0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .nav-wrapper {
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
  }

  .nav {
    order: 2;
    width: auto;
    justify-content: flex-end;
    position: static;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu a {
    color: #000000;
  }

  .nav-menu .nav-cta .btn-primary {
    color: #ffffff;
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header .nav-wrapper > .btn-primary {
    display: none;
  }

  .nav-menu .nav-cta {
    display: block;
    width: 100%;
  }

  .nav-menu .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 4rem 0;
  }

  .section {
    padding: 4rem 0;
  }

  .logo-img {
    width: 170px;
    height: 56px;
    margin-left: -4px;
    margin-right: -4px;
  }

}

@media (max-width: 1024px) {
  .section {
    padding: 4rem 0;
  }

  .grid-two {
    gap: 2rem;
  }

  .hero-image,
  .about-image,
  .benefits-image {
    min-height: 300px;
  }

  .service-detail .card img {
    height: 240px;
  }

  .map-wrapper iframe {
    min-height: 280px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(1200px, 92%);
  }

  .nav-wrapper {
    gap: 0.75rem;
  }

  .header .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-highlights {
    text-align: left;
  }

  .hero-image,
  .about-image,
  .benefits-image {
    min-height: 260px;
  }

  .section-header {
    text-align: left;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .form {
    padding: 1.5rem;
  }

  .map-wrapper iframe {
    min-height: 240px;
  }

  .service-detail .card img {
    height: 200px;
  }

  .logo-img {
    width: 140px;
    height: 46px;
    margin-left: -3px;
    margin-right: -3px;
  }
}
