:root {
  --bg-body: #f5f7fb;
  --bg-alt: #ffffff;
  --bg-hero-overlay: rgba(0, 20, 60, 0.55);
  --text-main: #1e293b;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --border-soft: #e2e8f0;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --container-width: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout base */

.container {
  width: 100%;
  max-width: var(--container-width);
  padding: 0 16px;
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #eef2ff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  font-weight: 700;
  margin-right: 6px;
  font-size: 18px;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.main-nav a {
  margin-left: 18px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
}

/* Hero */

.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(37, 99, 235, 0.65)),
    url('../img/hero-vacanze.jpg') center/cover no-repeat;
  z-index: -1;
}

.hero-inner {
  padding: 56px 0;
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(2.3rem, 3vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn.primary {
  background: #f97316;
  border-color: rgba(251, 146, 60, 0.6);
  color: #111827;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #e5e7eb;
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.35);
}

/* Sezioni */

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Grid */

.grid {
  display: grid;
  gap: 20px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Card */

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.section-disclaimer {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: #ffffff;
  padding: 22px 0;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.footer-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-network-title {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-network-links {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-network-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-network-links a:hover {
  text-decoration: underline;
}

.footer-credit {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 60vh;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-nav a {
    margin-left: 0;
  }

  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 40px 0 52px;
  }

  .hero-content {
    max-width: 100%;
  }
}
