:root {
  --primary-color: #312e81;
  /* Indigo 900 - Matching the deep blue of LTR */
  --primary-dark: #1e1b4b;
  /* Indigo 950 */
  --secondary-color: #eff6ff;
  /* Blue 50 */
  --text-color: #334155;
  /* Slate 700 */
  --heading-color: #1e293b;
  /* Slate 800 */
  --light-bg: #f8fafc;
  /* Slate 50 */
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

h1,
h2,
h3,
h4 {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--secondary-color);
}

.text-center {
  text-align: center;
}

.highlight {
  color: var(--primary-color);
}

/* Header */
#main-header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  height: 100px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 75px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
}

.logo-text span {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-color);
}

#main-header nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

#main-header nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--heading-color);
}

#main-header nav a:hover {
  color: var(--primary-color);
}

#main-header nav a.btn-primary {
  color: white;
}

#mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

#mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--heading-color);
  border-radius: 2px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* WhatsApp Buttons */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background-color: #1caa53;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  background-color: #1caa53;
  transform: scale(1.1);
}

.floating-whatsapp svg,
.btn-whatsapp svg {
  fill: currentColor;
}

/* Hero */
#hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../public/hero_bg_clean.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Ideally we'd have a background image here */
/* #hero { background-image: url('...'); background-size: cover; ... } */

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

#hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: -webkit-linear-gradient(45deg, var(--heading-color), var(--primary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--text-color);
  opacity: 0.9;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h3 {
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.section-header .line {
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}

/* Palestra Section Background */
#palestra {
  background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../public/palestra_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}


#chi-siamo {
  background-color: var(--secondary-color);
}

#chi-siamo p,
#staff p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Services / Terapie */
#terapie {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../public/terapie_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

@media (min-width: 992px) {
  .services-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  /* Softer shadow default */
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 148, 136, 0.1);
}

.icon-svg {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.icon-svg svg {
  width: 100%;
  height: 100%;
}

.service-icon-img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  object-fit: contain;
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* Staff */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.staff-card {
  text-align: center;
  padding: 20px;
}


.staff-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.staff-card:hover .staff-img {
  transform: scale(1.05);
  border-color: var(--primary-color);
}


/* Dove Siamo */
.location-layout {
  display: flex;
  gap: 40px;
  align-items: stretch;
  flex-wrap: wrap;
}

.address-box {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.address-box h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.address-box p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.map-container {
  flex: 1;
  min-width: 300px;
  background-color: #cbd5e1;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow);
}

/* Contact Actions */
.contact-wrapper {
  text-align: center;
}

.contact-intro {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

.contact-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background-color: var(--heading-color);
  color: #94a3b8;
  padding: 40px 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    padding: 0 20px;
  }

  #main-header nav {
    display: none;
    /* Hide for now, toggle with JS */
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  #main-header nav.active {
    display: block;
  }

  #main-header nav ul {
    flex-direction: column;
    gap: 15px;
  }

  #mobile-menu-btn {
    display: flex;
  }

  #hero h2 {
    font-size: 2.5rem;
  }

  .service-card {
    padding: 20px;
    text-align: center;
  }

  .icon-svg {
    justify-content: center;
    margin: 0 auto 15px;
  }
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  z-index: 3000;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
  /* display: none; */
  /* Commentato per debug: il banner deve vedersi subito */
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-text {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}