:root {
  --bg: #f7f2ec;
  --bg-light: #faf6f1;
  --accent: #89b79e;
  --accent-dark: #3f6f5a;
  --text-main: #121212;
  --text-soft: #555555;
  --border-soft: #e0d5c8;
  --badge: #fff7ec;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.06);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fdf7f0 0, #f3eee6 45%, #f0ebe4 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 18px 60px;
}

/* NAVBAR */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 8px;
  z-index: 10;
}

.logo { display: flex; align-items: center; gap: 8px; }

.logo-mark {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: conic-gradient(from 120deg, #89b79e, #f5d0a0, #f9a8d4, #89b79e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.logo-mark span { font-size: 14px; font-weight: 700; color: #ffffff; }

.logo-text-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 11px;
  text-transform: lowercase;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.nav-link {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.nav-link:hover {
  background: #f1e7da;
  color: var(--text-main);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: #fdfbf8;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
}

@media (max-width: 800px) {
  .nav {
    border-radius: 18px;
    padding: 10px 14px;
  }

  .nav-links {
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;      /* così va a capo se serve */
  }

  .nav-cta {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* NAV scroll hide/show */
.nav {
  transition: transform 0.25s ease;
}

.nav--hidden {
  transform: translateY(-120%);
}

/* DROPDOWN BRAND */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-arrow {
  font-size: 10px;
  transform: translateY(1px);
  transition: transform 0.15s ease;
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: 120%;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(224, 213, 200, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}

.dropdown-item {
  display: block;
  padding: 7px 16px;
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: #f1e7da;
  color: var(--text-main);
}

/* HEADER SECTION */
.header-section {
  margin-top: 28px;
  margin-bottom: 24px;
  padding: 20px 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.header-badge {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--badge);
  border: 1px solid #f4ddc4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

.header-title {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.header-title span {
  background: linear-gradient(120deg, var(--accent-dark), #f59e0b);
  -webkit-background-clip: text;
  color: transparent;
}

.header-subtitle {
  font-size: 13px;
  color: var(--text-soft);
  max-width: 520px;
}

/* BRAND GRID */
.section {
  margin-bottom: 40px;
  padding: 18px 18px 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-soft);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1000px) {
  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 750px) {
  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }
}

.brand-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.brand-card {
  padding: 12px 12px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(224, 213, 200, 1);
  background: linear-gradient(135deg, #fdfbf8, #f5eee5);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

/* IMMAGINE BRAND */
.brand-image-wrapper {
  width: 100%;
  margin-bottom: 8px;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f2ec;
  border: 1px solid rgba(224, 213, 200, 0.9);
}

.brand-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.brand-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.brand-text {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
  margin-bottom: 6px;
}

.brand-tag {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(224, 213, 200, 0.9);
}

.brand-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-soft);
}

.brand-link-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
}

/* INFO BOX */
.info-box {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7ec;
  border: 1px solid #f4ddc4;
  font-size: 11px;
  color: var(--text-soft);
}

/* FOOTER */
.footer {
  margin-top: 24px;
  padding-top: 16px;
  font-size: 11px;
  color: var(--text-soft);
  border-top: 1px dashed rgba(200, 187, 170, 0.8);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
