@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #f4f5f7;
  color: #2c2c2c;
  font-size: 1.05rem;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

header {
  color: #0d6efd;
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px -10px rgba(13, 110, 253, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

h1 { margin: 10px; font-size: 2.4rem; }
h2 { color: #0d6efd; font-size: 1.8rem; font-weight: 700; }
p { font-size: 1.1rem; margin-bottom: 5px; }

.informazioni h2 { text-align: center; }
.informazioni { flex: 1; padding: 20px; }

nav {
  padding: 25px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

a {
  text-decoration: none;
  color: #0d6efd;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: #0d6efd;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

a:hover {
  color: #0a58ca;
}

td.foto { text-align: center; }
.foto img { height: 200px; width: auto; border-radius: 75%; }
.foto p { font-weight: bold; margin-top: 10px; font-size: 1.1rem; }

.info-section-desktop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 40px auto;
}

.map-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.map-container h2 {
  color: #0d6efd;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.map-container iframe {
  width: 80%;
  aspect-ratio: 4 / 3;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(13,110,253,0.3);
  border: none;
}

.servizi-container {
  flex: 1;
  border-radius: 16px;
  padding: 0 25px;
  text-align: center;
}

.servizi-container h2 { margin-bottom: 10px; }
.servizi-container p { line-height: 1.6; }

.servizi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.servizio {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 10px 16px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.servizio:hover {
  background: #f0f6ff;
  border-color: #0d6efd;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(13,110,253,0.15);
}

.servizio i { color: #0d6efd; font-size: 1.2rem; }
.servizio span { font-size: 0.95rem; color: #2c2c2c; }

.slider-container {
  position: relative;
  max-width: 1300px;
  margin: 10px auto 20px;
}

.slider {
  display: flex;
  transition: transform 0.7s ease;
  gap: 25px;
}

.slide {
  flex: 0 0 calc(33.333% - 16.6px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.slide:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(13,110,253,0.3);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0d6efd;
  color: #fff;
  border: 2px solid rgba(13, 110, 253, 0.4);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
}

.arrow.left { left: 25px; }
.arrow.right { right: 25px; }

.arrow:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.6);
}

footer {
  background: #0d6efd;
  color: #fff;
  text-align: center;
  padding: 25px;
  width: 100%;
  font-size: 1rem;
  margin-top: auto;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.15);
}

.info p{
  margin-bottom: 25px;
  margin-top: 25px;
  text-align: center;
  line-height: 1.7;
}

.dintorni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-top: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.regole-container {
  margin: 60px auto 0;
  padding: 30px 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  max-width: 1100px;
}

.regole-container h2 {
  color: #0d6efd;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 25px;
}

.regola {
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 15px;
}

.regola:last-child {
  border-bottom: none;
}

.regola h3 {
  color: #0d6efd;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.regola p {
  margin-bottom: 6px;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
  word-wrap: break-word;
}
