:root {
  --blu: #1f3a5f;
  --azzurro: #2f6fed;
  --grigio: #f5f7fb;
  --testo: #1c1c1c;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1c1c1c;
  background-color: #D0ECFF;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  flex: 1;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.container p {
  text-align: justify;
  line-height: 1.7;
  margin-bottom: 15px;
}

.container h2 {
  margin-bottom: 20px;
}

.container h3 {
  margin-top: 25px;
  color: var(--blu);
}

/* NAV */
nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 15px;
  background: #E0EEFF;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  text-decoration: none;
  color: var(--blu);
  font-weight: bold;
}

nav a:hover {
  color: var(--azzurro);
}

/* HERO */
.hero {
  background: linear-gradient(rgba(31,58,95,0.8), rgba(47,111,237,0.8)),
              url("img/condominio.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 120px 20px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
}

.btn {
  margin-top: 20px;
  display: inline-block;
  background: white;
  color: var(--blu);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* SEZIONI */
.section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #eef2f7;
  padding: 20px;
  border-radius: 12px;
}

.contatti {
  text-align: center;
}

.contatti p {
  text-align: center;
}

.contatti table {
  margin-left: auto;
  margin-right: auto;
}

.contatti a img {
  display: block;
  margin: 10px auto;
}

.contatti iframe {
  width: 100%;
  height: 400px;
  border-radius: 12px;
}

.contatti-wide {
  max-width: 1200px;
  width: 100%;
}

.contatti-wide .section {
  max-width: 100%;
}

.contatto-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 16px;
  text-align: center;
}

.icon {
  font-size: 18px;
  width: 25px;
  text-align: center;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
  background: #111;
  color: white;
  margin-top: 60px;
  font-size: 12px;
  opacity: 0.9;
}

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: white;
  padding: 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 9999;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#cookie-banner a {
  color: #2f6fed;
  text-decoration: underline;
}

.cookie-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#cookie-banner button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 0;
}

#cookie-banner button:hover {
  opacity: 0.9;
}

#cookie-banner .rifiuta {
  background: #555;
  color: white;
}

#cookie-banner button:not(.rifiuta) {
  background: var(--azzurro);
  color: white;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

/* ELENCO PERSONALIZZATO */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 8px;
}

ul li::before {
  content: "➤ ";
  color: var(--azzurro);
  font-weight: bold;
}

/* FORM */
form {
  margin-top: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 50px;
  row-gap: 25px;
}

form label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

textarea {
  margin-top: 10px;
}

button {
  margin-top: 20px;
  background: var(--azzurro);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

.privacy {
  display: block;
  margin-top: 15px;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-row label {
  margin-bottom: 0;
}

.radio-inline {
  display: flex;
  gap: 15px;
}

.radio-inline label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.radio-inline input[type="radio"] {
  accent-color: var(--azzurro);
}

.orari {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.orari th {
  background: var(--blu);
  color: white;
  padding: 10px;
  text-align: center;
}

.orari td:first-child {
  font-weight: bold;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.orari tr:nth-child(even) {
  background-color: #f5f7fb;
}

.orari tr:hover {
  background-color: #e6f0ff;
}

/* MOBILE */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero {
    padding: 80px 20px;
  }

  .orari {
    font-size: 14px;
  }

  .orari th, .orari td {
    padding: 6px;
  }

  .section {
    padding: 40px 15px;
  }
}

.card {
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn:hover {
  opacity: 0.9;
}

/* INTRO STUDIO PREMIUM */
.intro-studio {
  text-align: center;
  margin-bottom: 30px;
}

.slogan {
  font-size: 18px;
  font-style: italic;
  color: var(--blu);
  margin-bottom: 10px;
}

.contatto-item a {
  color: inherit;
  text-decoration: none;
}

.contatto-item a:hover {
  text-decoration: underline;
}

.contatto-item span:last-child {
  display: block;
  font-size: 13px;
  color: #666;
}

.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

/* Bottone */
.whatsapp-float {
  background: #25D366;
  color: white;
  font-size: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: 0.3s;
  position: relative;
}

/* Hover */
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Animazione pulse */
.whatsapp-float::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Tooltip */
.whatsapp-tooltip {
  background: white;
  color: #333;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  text-align: center;
  animation: fadeIn 1s ease;
}

/* Animazione tooltip */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}