/* ============================================================
   Dolce Turismo — style.css
   Palette and type follow the official template (PDF).
   ============================================================ */

:root {
  --cream: #f8f6f3;        /* main background */
  --cream-alt: #f2f1ee;    /* alternate section background */
  --white: #ffffff;
  --green: #4e6e59;        /* primary buttons, brand green */
  --green-dark: #3f5a49;   /* button hover */
  --ink: #26312a;          /* headings */
  --text: #4a524c;         /* body text */
  --accent: #b04a37;       /* red dots in "Scopri. Esplora. Raggiungi." */
  --circle: #eceae2;       /* icon circles */
  --radius-pill: 999px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --hero-bg: #efe7de;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: inherit; }

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}

h1 {
  color: var(--green-dark);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.dot { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-download { width: 15px; height: 15px; flex-shrink: 0; }

.btn-solid {
  background: var(--green);
  color: var(--white);
}
.btn-solid:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid #c9c5ba;
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-glass {
  background: rgba(78, 110, 89, 0.75);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn-glass:hover { background: var(--green); }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  padding: 22px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { height: 44px; width: auto; }

.btn-header { padding: 12px 22px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(
      to right,
      var(--hero-bg) 0%,
      transparent 55%
    ),
    url("../media/hero.png") center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
}

.hero-text {
  /* left edge aligned with .container, image bleeds to the right edge */
  padding: 64px 48px;
  padding-left: max(24px, calc((100vw - 1160px) / 2));
  max-width: 660px;
  justify-self: start;
}

.hero-text h1 { margin-bottom: 24px; }

.hero-text p { margin-bottom: 32px; max-width: 44ch; }

.hero-media { height: 100%; min-height: 420px; }

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }

/* --- Un nuovo modo di esplorare --- */
.section-explore { background: var(--cream); }

.explore-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.explore-text h2 { margin-bottom: 24px; }

.explore-text .lead { margin-bottom: 40px; max-width: 52ch; }

.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.feature-icon,
.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--circle);
  color: var(--ink);
  margin-bottom: 12px;
}

.feature-icon svg,
.category-icon svg { width: 26px; height: 26px; }

.feature-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.feature-sub { font-size: 0.86rem; }

.explore-media img {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

/* --- Oltre il turismo --- */
.section-beyond { background: var(--cream-alt); }

.beyond-title { margin-bottom: 56px; }

.categories {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.category { text-align: center; }

.category p {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Banner ---------- */
.banner {
  position: relative;
  background:
    linear-gradient(rgba(20, 26, 20, 0.25), rgba(20, 26, 20, 0.35)),
    url("../media/banner.png") center / cover no-repeat;
  padding: 130px 0;
}

.banner h2 { color: var(--white); margin-bottom: 18px; }

.banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch;
  margin-bottom: 34px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  padding: 56px 0 40px;
  text-align: center;
  font-size: 0.82rem;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.logo-footer { height: 40px; }

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.copyright { color: #8a8f8a; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .hero { background: var(--hero-bg); }

  .hero-grid { grid-template-columns: 1fr; }

  .hero-text {
    padding: 56px 24px 40px;
    max-width: none;
    width: min(640px, 100%);
    margin-inline: auto;
  }

  .hero-media { min-height: 320px; }
  .hero-media img { min-height: 320px; }

  .explore-grid { grid-template-columns: 1fr; gap: 48px; }

  .explore-media { order: -1; }

  .categories { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }

  .btn-header span { display: none; }        /* icona sola su mobile */
  .btn-header { padding: 12px 14px; }
  .btn-header .icon-download { width: 18px; height: 18px; }

  .features { grid-template-columns: 1fr; gap: 20px; }

  .feature {
    display: grid;
    grid-template-columns: 58px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: center;
    text-align: left;
  }

  .feature-icon { grid-row: 1 / 3; margin-bottom: 0; }

  .categories { grid-template-columns: repeat(2, 1fr); }

  .banner { padding: 90px 0; }

  .logo { height: 36px; }
}
