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

html { 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale; 
}

body {
  font-family: 'Lato', sans-serif;
  background: #fff;
  color: #000;
  text-align: center;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #000;
}

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

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

/* -------------------- INTRO -------------------- */
.intro-strip {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 36px 0;
}

.intro-strip h1 {
  color: #c8a97e;
  letter-spacing: 12px;
  font-size: 3.4em;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.intro-strip h1:hover {
  transform: scale(1.05);
  letter-spacing: 14px;
}

@media (max-width: 768px) {
  .intro-strip {
    padding: 26px 0;
  }
  .intro-strip h1 {
    font-size: 2.5em;
    letter-spacing: 8px;
  }
}

/* -------------------- CAROSELLO -------------------- */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f9f7f4;
}

.hero-carousel .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-carousel .slide.active {
  opacity: 1;
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* Frecce del carosello - versione minimal ed elegante */
.hero-carousel .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 36px;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 5;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-carousel .nav:hover {
  color: #000;
  transform: translateY(-50%) scale(1.15);
}

.hero-carousel .prev { left: 18px; }
.hero-carousel .next { right: 18px; }

@media (max-width: 768px) {
  .hero-carousel .nav {
    font-size: 28px;
    color: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
  }
  .hero-carousel .prev { left: 10px; }
  .hero-carousel .next { right: 10px; }
}

/* Pallini */
.hero-carousel .dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.hero-carousel .dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}
.hero-carousel .dots button.active {
  background: #c8a97e;
}

/* -------------------- SERVIZI -------------------- */
#servizi {
  padding: 60px 20px;
  background: #fff;
}
#servizi h2 {
  color: #c8a97e;
  font-size: 1.8em;
  margin-bottom: 24px;
}

.services-grid {
  display: grid;
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 600px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .services-grid { grid-template-columns: repeat(5, 1fr); } }

.service-box {
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .3s, box-shadow .3s;
  text-align: center;
}
.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.service-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #efe7db;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.service-box:hover .service-media img { transform: scale(1.05); }

.service-box h3 {
  color: #c8a97e;
  font-size: 1.05em;
  letter-spacing: .06em;
  margin: 14px 12px 6px;
  text-transform: uppercase;
  font-weight: 700;
}
.service-box p {
  font-size: 0.98em;
  color: #444;
  margin: 0 14px 16px;
  line-height: 1.55;
}

/* -------------------- SALONE -------------------- */
#salone {
  background: #f8f8f8;
  padding: 60px 20px;
}
#salone h2 {
  color: #c8a97e;
  font-size: 1.8em;
}
#salone img {
  width: 100%;
  max-width: 700px;
  margin: 30px auto;
  display: block;
  border-radius: 4px;
}

/* -------------------- BROCHURE -------------------- */
#brochure {
  padding: 60px 20px;
  background: #fff;
}
#brochure h2 {
  color: #c8a97e;
  font-size: 1.8em;
  margin-bottom: 10px;
}
#brochure p { margin-bottom: 20px; }
#brochure .btn {
  display: inline-block;
  background: #c8a97e;
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  transition: background 0.3s;
}
#brochure .btn:hover {
  background: #b99368;
}

/* -------------------- ORARI -------------------- */
#orari {
  background: #fff;
  padding: 60px 20px;
}
#orari h2 {
  color: #c8a97e;
  font-size: 1.8em;
  margin-bottom: 10px;
}
#open-status {
  font-weight: 700;
  margin: 8px 0 14px;
}
#open-status.open { color: #1a7f37; }
#open-status.closed { color: #b22222; }
#orari .orari-elenco p {
  font-size: 1.05em;
  margin: 6px 0;
}
#orari .orari-elenco strong { color: #000; }
#orari .chiuso {
  color: #b86b77;
  font-weight: 700;
}
#orari .today {
  background: #fff8ee;
  border-left: 4px solid #c8a97e;
  padding: 4px 10px;
  border-radius: 6px;
}

/* -------------------- CONTATTI -------------------- */
#contatti {
  background: #f8f8f8;
  padding: 60px 20px;
}
#contatti h2 {
  color: #c8a97e;
  font-size: 1.8em;
  margin-bottom: 12px;
}
.social-icons {
  margin-top: 20px;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 160px;
}
.social-item i {
  font-size: 38px;
  line-height: 1;
}
.social-item .fa-instagram { color: #E1306C; }
.social-item .fa-facebook { color: #1877F2; }
.social-item .fa-whatsapp { color: #25D366; }
.social-item span {
  font-size: 0.95em;
  color: #333;
}
.social-item:hover span { text-decoration: underline; }

/* -------------------- FOOTER -------------------- */
footer {
  background: #fff;
  color: #888;
  font-size: 0.85em;
  padding: 20px 10px;
  border-top: 1px solid #eee;
}
footer a {
  color: #c8a97e;
}
footer a:hover {
  color: #b99368;
}

/* -------------------- WHATSAPP BUTTON -------------------- */
#whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: 0.3s;
  z-index: 1000;
}
#whatsapp-btn:hover { background: #1ebc57; }

/* -------------------- MAP BUTTON (lungo) -------------------- */
.map-button {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 1100;
  background: #ffffff;
  color: #000;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.map-button svg {
  flex-shrink: 0;
}

.map-button span {
  font-family: 'Lato', sans-serif;
  font-size: 0.95em;
  letter-spacing: 0.5px;
}

.map-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.25);
}

/* -------------------- MOBILE -------------------- */
@media (max-width: 768px) {
  .service-media {
    aspect-ratio: auto;
    background: #efe7db;
  }
  .service-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .intro-strip h1 {
    font-size: 2.3rem;
    letter-spacing: 6px;
  }
  h2 {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }
  h3 {
    font-size: 1.1rem;
  }
  #whatsapp-btn {
    bottom: 15px;
    right: 15px;
    padding: 10px 16px;
  }
  .map-button {
    right: 15px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    font-size: 0.9em;
    padding: 8px 14px;
  }
  .map-button span {
    font-size: 0.9em;
  }
}

/* -------------------- ACCESSIBILITÀ -------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel .slide,
  .hero-carousel .nav,
  .map-button,
  .intro-strip h1 {
    transition: none;
  }
}