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

:root {
  --primary: #396f74;
  --primary-dark: #23484c;
  --background: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #555;
  --muted: #999;
  --card-bg: #f7f7f7;
  --shadow: rgba(0, 0, 0, 0.15);
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--background);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 1rem;
  padding-top: 140px; /* compensa header fisso */
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 120px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.nav-menu a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--primary-dark);
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110vh;
  padding: 10rem 2rem 6rem;
  overflow: hidden;
}

.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 -40px; /* Desktop: spostata più in alto */
  opacity: 0.25;
  filter: grayscale(20%) contrast(110%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(57,111,116,0.6), rgba(57,111,116,0.3));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
  text-align: left;
  margin-left: auto;
  margin-right: 2rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #f0f0f0;
}

/* CTA BUTTON */
.cta-btn {
  background: #fff;
  color: var(--primary);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

/* DIVIDER */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 2rem auto;
  border-radius: 2px;
}

/* SEZIONI GENERALI */
section {
  padding: 5rem 0;
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary);
}

/* BIO */
.bio-text {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: center;
}

.bio-text p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

address {
  background: #f9f9f9;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 1.2rem 1.5rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 1rem;
  color: var(--text-dark);
  display: inline-block;
  line-height: 1.6;
}

/* AREE DI COMPETENZA */
.areas {
  position: relative;
  background: #f9f9f9;
  overflow: hidden;
}

.areas-bg img {
  position: absolute;
  top: 90%; /* più giù */
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 650px;
  opacity: 0.28;
  mix-blend-mode: multiply;
  z-index: 1;
}

.areas .container {
  position: relative;
  z-index: 2;
}

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

.area-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease;
}

.area-card:hover {
  transform: translateY(-5px);
}

.area-card h3 {
  font-family: "Playfair Display", serif;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.area-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CONTATTI */
.contact {
  background: var(--primary);
  color: #fff;
}

.contact h2 {
  color: #fff;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* ✅ FIX CHECKBOX */
.privacy-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.5rem 0;
}

.privacy-checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.privacy-checkbox label {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  color: #fff;
}

button {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

button:hover {
  background: #f0f0f0;
}

/* FOOTER */
footer {
  background: #222;
  color: #ddd; /* miglior leggibilità */
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.footer-logo img {
  height: 70px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

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

footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 1rem;
  z-index: 999;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  font-size: 0.9rem;
}

.cookie-content a {
  color: #fff;
  text-decoration: underline;
}

.cookie-content button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
}

.cookie-content button:hover {
  background: var(--primary-dark);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  z-index: 2000;
  animation: fadeInOut 3s forwards;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(20px); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }

  .hero {
    padding: 8rem 1rem 3rem;
    min-height: 100vh; /* adattato per mobile */
  }

  .hero h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero p {
    font-size: 1rem;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-bg img {
    object-position: center top; /* Mobile: riallineata sugli occhi */
  }

  .areas-bg img {
    max-width: 400px;
    opacity: 0.18;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
}
