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

:root {
  --cream: #f1f0ed;        /* main background */
  --cream-alt: #f7f5f1;    /* alternate section background */
  --white: #ffffff;
  --green: #608068;        /* primary buttons, brand green */
  --green-dark: #3f5644;   /* button hover */
  --ink: #302F2E;          /* headings */
  --text: #302f2e;         /* body text */
  --sub-text: #71716d;
  --accent: #a7564a;       /* red dots in "Scopri. Esplora. Raggiungi." */
  --circle: #e3e0d9;       /* icon circles */
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Avenir", "Avenir Next", "Nunito", -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;
  font-weight: 500;
  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;
}

.container-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: normal;
  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: 18px 58px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: normal;
  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-dark);
  color: var(--white);
}
.btn-solid:hover { background: var(--ink); }

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

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

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

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

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(
      to right,
      var(--hero-bg) 30%,
      transparent 70%
    ),
    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: 50px 0; }

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

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

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

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

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

.feature {
  width: 70px;
  display: flex;
  flex-direction:column;
  align-items: center;
}

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

.category-icon { 
  color: var(--green);
}

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

.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;
  text-align: center;
  color: var(--sub-text)
}

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

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

.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: 50px 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.72rem;
  color: var(--green);
}

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

.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:
      linear-gradient(
        to right,
        var(--hero-bg) 0%,
        transparent 200%
      ),
      /* linear-gradient(rgba(20, 26, 20, 0.25), var(--hero-bg)), */
      url("../media/hero.png") top / cover no-repeat;
  }

  .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; }

  .feature-sub { text-align: left; }

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

  .banner { padding: 90px 0; }

  .logo { height: 36px; }

  .section-beyond .container { flex-direction: column; }
}
