/* Variabili colore basate sul logo Relais Galatea */
:root {
  --teal: #1d4346;
  --teal-light: #2a5456;
  --teal-dark: #113136;
  --gold: #d4af5a;
  --gold-light: #e8d084;
  --gold-dark: #b8964a;
  --white: #ffffff;
  --ink: #2c3e50;
  --gray: #f8f9fa;
  --mint: #e8f4f1;
  --mint-dark: #cfe0dc;
}

/* Reset e base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 94%);
  margin: 0 auto;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--teal-dark);
  padding: 8px;
  border: 1px solid rgba(212, 175, 90, 0.35);
}

.brand h1 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.subtitle {
  font-size: 0.9rem;
  color: #e8f4f1;
  opacity: 0.9;
}

nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: #e8f4f1;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

nav a.active,
nav a:hover {
  color: var(--gold);
  background: rgba(212, 175, 90, 0.1);
  border: 1px solid rgba(212, 175, 90, 0.3);
}

.mobile-toggle {
  display: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: var(--white);
  padding: 90px 0 70px;
  border-bottom: 4px solid var(--gold);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.hero h2 {
  color: var(--gold);
  font-size: 3.2rem;
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero p {
  color: #e8f4f1;
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.7;
}

.pill {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(232, 244, 241, 0.15);
  color: #e8f4f1;
  border: 1px solid rgba(232, 244, 241, 0.35);
  font-size: 0.9rem;
  font-weight: 500;
}

.logo-hero {
  width: 280px;
  margin: 0 auto;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.3));
  border-radius: 16px;
  background: var(--teal-dark);
  padding: 20px;
  border: 2px solid rgba(212, 175, 90, 0.4);
}

/* Buttons */
.cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn.primary {
  background: var(--gold);
  color: var(--teal);
  border-color: var(--gold);
}

.btn.primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 90, 0.3);
}

.btn.ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn.ghost:hover {
  background: rgba(212, 175, 90, 0.15);
  transform: translateY(-1px);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  color: var(--teal);
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  font-weight: 700;
}

.features {
  background: var(--gray);
  border-top: 4px solid var(--gold);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--mint);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(29, 67, 70, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(29, 67, 70, 0.15);
}

.card h3 {
  margin: 12px 0 12px;
  color: var(--teal);
  font-size: 1.4rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: #425a61;
  line-height: 1.6;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(212, 175, 90, 0.15);
  color: #7a6222;
  border: 1px solid rgba(212, 175, 90, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.box {
  background: var(--white);
  border: 1px solid var(--mint);
  border-radius: 16px;
  padding: 32px;
}

.box h3 {
  margin: 0 0 20px;
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 600;
}

.box ul {
  margin: 0;
  padding: 0;
}

.box li {
  padding: 8px 0;
  border-bottom: 1px solid var(--mint);
  color: var(--ink);
}

.box li:last-child {
  border-bottom: none;
}

/* Location */
.location-info h3 {
  color: var(--teal);
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.distances {
  margin: 24px 0;
}

.distance-item {
  padding: 8px 0;
  color: var(--ink);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.ph {
  background: linear-gradient(135deg, #f0f5f4, #e6eeec);
  border: 2px dashed var(--mint-dark);
  height: 200px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-weight: 600;
  transition: all 0.3s ease;
}

.ph:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, #f8f9fa, #e8f4f1);
}

.gallery-note {
  margin-top: 16px;
  color: #5b747b;
  font-style: italic;
  text-align: center;
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--mint);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.faq details:hover {
  border-color: var(--gold);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--teal);
  padding: 4px 0;
}

.faq details[open] summary {
  margin-bottom: 12px;
}

.faq p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

input, select, textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--mint);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 90, 0.1);
}

textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  margin-bottom: 20px;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Contact info */
.contact-info {
  display: grid;
  gap: 20px;
}

.contact-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--mint);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item strong {
  color: var(--teal);
}

.contact-item a {
  color: var(--gold);
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: var(--white);
  border-top: 3px solid var(--gold);
  padding: 40px 0 20px;
}

.footgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.footer-title {
  color: var(--gold);
  letter-spacing: 0.06em;
  font-size: 1.2rem;
}

.footer-subtitle {
  font-size: 0.92rem;
  color: #e8f4f1;
}

.footer-links {
  text-align: right;
}

.footer-links a {
  color: #e8f4f1;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.sub {
  border-top: 1px solid rgba(212, 175, 90, 0.25);
  margin-top: 24px;
  padding-top: 20px;
  color: #cfe7e3;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner,
  .split,
  .footgrid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero {
    text-align: center;
    padding: 60px 0 50px;
  }
  
  .logo-hero {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: 96%;
  }
  
  section {
    padding: 50px 0;
  }
  
  .hero {
    padding: 40px 0 30px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .logo-hero {
    width: 180px;
  }
}
