:root {
  --bg:#f8f6f3;
  --card:#fff;
  --text:#222;
  --muted:#6c6c6c;
  --accent:#2d2d2d;
  --radius:14px;
  --container:1200px;
}

* { box-sizing:border-box; }

body {
  margin:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  scroll-behavior:smooth;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden; /* Evita lo scroll orizzontale */
}

.container { 
  width:90%; 
  max-width:var(--container); 
  margin:0 auto; 
}

h2 {
  margin-top:0;
  font-weight:600;
  text-align:center;
  font-size:1.6rem;
  margin-bottom:18px;
  color:var(--accent);
}

p {
  max-width:900px;
  margin:0 auto;
  color:var(--muted);
  text-align:center;
}

/* SECTIONS */
.section {
  margin-top:40px;
  padding:56px 18px;
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:0 8px 28px rgba(18,18,18,0.04);
}

.intro-text {
  max-width:760px;
  margin:0 auto 24px;
  color:var(--muted);
  text-align:center;
  font-weight:300;
}

/* FEATURES */
.features-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
  margin-top:32px;
}

.feature-card {
  background:#fff;
  padding:24px;
  border-radius:var(--radius);
  box-shadow:0 6px 24px rgba(18,18,18,0.06);
  text-align:left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform:translateY(-5px);
  box-shadow:0 12px 36px rgba(18,18,18,0.1);
}

.feature-card h3 { font-weight:600; color:var(--accent); margin-bottom:10px; }
.feature-card ul { padding-left:20px; margin:0; list-style:disc; }

.feature-card ul li {
  margin-bottom:8px;
  color:var(--muted);
  font-weight:300;
  line-height:1.6;
}

/* LINK STYLE */
.link-same-style {
  color: inherit;
  font-family: inherit;
  text-decoration: none;
}

.link-same-style:hover {
  text-decoration: underline;
}

.small-note { margin-top:5px; text-align:center; color:var(--muted); font-size:0.95rem; }
.small-note.first-note { margin-top: 30px; }

/* CONTACT */
.contact .contact-actions {
  display:flex; 
  gap:14px; 
  justify-content:center; 
  margin:18px 0 26px; 
  flex-wrap:wrap;
}

.btn-outline {
  display:inline-flex; 
  align-items:center; 
  gap:6px;
  padding:10px 18px; 
  border-radius:10px; 
  border:1px solid #333;
  color:#333; 
  text-decoration:none; 
  font-weight:600;
}

.btn-outline:hover { background-color:#f0f0f0; }

.contact-form { 
  max-width:720px; 
  margin:0 auto; 
  padding:8px; 
}

.field { 
  display:flex; 
  flex-direction:column; 
  margin-bottom:12px; 
  text-align:left; 
}

.field label { 
  font-weight:600; 
  margin-bottom:6px; 
  color:var(--accent); 
}

.field input, 
.field textarea {
  padding:12px; 
  border-radius:10px; 
  border:1px solid #ccc;
  font-family:inherit; 
  font-weight:400;
}

.btn-form {
  font-family:inherit; 
  font-weight:400;
  padding:12px; 
  border-radius:10px; 
  border:1px solid var(--accent);
  background:var(--accent); 
  color:#fff; 
  cursor:pointer;
}

.btn-form:hover { background:#1a1a1a; }

.form-note { 
  text-align:left; 
  margin-top:12px; 
  color:var(--muted); 
  font-size:0.95rem; 
  transition: opacity 1s ease;
  opacity: 1;
}

.form-note.hide { opacity: 0; }

.hidden { display: none; }

/* SLIDER */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  max-width: 100%;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.slider-btn:hover { background: rgba(0, 0, 0, 0.8); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

/* POSIZIONE */
.posizione .map-container {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(18, 18, 18, 0.08);
}

.posizione .map-actions {
  margin-top: 20px;
  text-align: center;
}

.posizione .map-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.posizione .map-actions a:hover {
  background: #f0f0f0;
}

/* ============================= */
/* GUEST REVIEWS SLIDER */
/* ============================= */

.reviews-slider {
  position: relative;
  overflow: hidden;
  margin: 40px auto 0;
  width: 100%;
  max-width: 900px;
}

.review-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review-slide {
  flex: 0 0 100%;
  max-width: 100%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(18,18,18,0.06);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.review-slide p {
  margin: 0 0 14px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
}

.review-slide .author {
  font-weight: 600;
  color: var(--accent);
}

/* Buttons */
.reviews-btn {
  display: none !important;
  visibility: hidden;
  width: 0;
  height: 0;
}

.reviews-btn:hover { background: rgba(0,0,0,0.5); }
.reviews-btn.prev { left: 10px; }
.reviews-btn.next { right: 10px; }

/* Responsive */
@media (max-width: 768px) {
  .reviews-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    top: 55%;
    transform: translateY(-10%);
  }
}

/* ============================= */
/* FOOTER */
/* ============================= */

.site-footer {
  background: var(--bg);
  color: var(--muted);
  padding: 60px 0 20px;
  text-align: center;
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 10px;
}

.footer-content .codes {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ✅ FIX: Non forzare più display:block sul container */
.site-footer .container {
  margin: 0 auto;
  text-align: center;
}

/* ============================= */
/* FOOTER LOGOS - ORIZZONTALI REALI */
/* ============================= */
/* ============================= */
/* FOOTER LOGOS - ORIZZONTALI REALI */
/* ============================= */
.footer-logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 45px;
  padding-top: 50px;
  padding-bottom: 30px;
  margin-top: 20px;
  overflow: hidden; /* ✅ evita scroll orizzontale */
}

.footer-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logos img {
  max-width: 115px;
  height: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-logos img:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

/* RESPONSIVE FOOTER LOGOS */
@media (max-width: 1024px) {
  .footer-logos {
    gap: 100px;
    padding-top: 40px;
  }
  .footer-logos img { max-width: 110px; }
}

@media (max-width: 768px) {
  .footer-logos {
    gap: 60px;
    padding-top: 30px;
    flex-wrap: wrap; /* ✅ su mobile vanno a capo se serve */
  }
  .footer-logos img { max-width: 90px; }
}

@media (max-width: 480px) {
  .footer-logos {
    gap: 40px;
    padding-top: 20px;
  }
  .footer-logos img { max-width: 70px; }
}


/* ============================= */
/* MODALE GENERALE */
/* ============================= */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  overflow-y: auto;
  padding-top: 60px;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 28px;
  border-radius: 14px;
  width: 90%;
  max-width: 700px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

.footer-links {
  margin-top: 8px;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.modal-content h2 {margin-top:0; font-weight:600; color:var(--accent);}
.modal-content p {margin-bottom:12px;}

.modal .close {
  color: #333;
  float: right;
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
}

.modal .close:hover {color: var(--accent);}

/* ============================= */
/* 🔹 RESPONSIVE DESIGN */
/* ============================= */

@media (max-width: 768px) {

  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 200px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 1rem;
  }

  .nav-toggle {
    display: block;
    color: var(--accent);
    cursor: pointer;
    font-size: 1.6rem;
    margin-left: auto;
  }

  .header-inner { flex-wrap: wrap; }

  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; padding: 0 10px; }

  .btn-primary, .btn-ghost {
    display: block;
    width: 100%;
    margin: 8px 0;
  }

  .section { padding: 40px 14px; }

  h2 { font-size: 1.4rem; }
  p { font-size: 0.95rem; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 18px; }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .contact .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-outline {
    justify-content: center;
    width: 100%;
  }

  .contact-form {
    width: 100%;
    padding: 0;
  }

  .field input, .field textarea {
    font-size: 1rem;
  }

  .footer-content {
    font-size: 0.9rem;
  }

  .modal-content {
    width: 90%;
    margin-top: 20%;
    padding: 20px;
  }
}

@media (max-width: 1024px) {
  .hero-title { font-size: 2.6rem; }
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .feature-card { padding: 20px; }
  .contact-form { width: 95%; }
}

@media (min-width: 1440px) {
  body { font-size: 1.05rem; }
  .container { max-width: 1400px; }
  .hero-title { font-size: 3.6rem; }
}
