/* ============================================
   VITHA GROUP — DESIGN SYSTEM (LIGHT MODE)
   Stile Ecomondo: Roboto Light, sfondo chiaro,
   pretitle bold uppercase, card 16px, gradient brand
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 120px;
}

:root {
  /* ---- Brand ---- */
  --c-primary: #C9202E;
  --c-primary-soft: rgba(201, 32, 46, 0.85);
  --c-primary-bg-10: rgba(201, 32, 46, 0.10);
  --c-primary-bg-25: rgba(201, 32, 46, 0.25);
  --c-primary-bg-05: rgba(201, 32, 46, 0.05);

  /* ---- Sfondi (LIGHT) ---- */
  --c-bg-main: #FFFFFF;            /* sfondo principale del sito */
  --c-bg-cream: #F7F5F2;           /* sfondo alternato (sezioni soft) */
  --c-bg-paper: #FAFAF9;
  --c-bg-dark: #111222;            /* solo footer / CTA */
  --c-bg-dark-2: #1a1b30;

  /* ---- Testo (LIGHT MODE) ---- */
  --c-text: #111222;               /* testo principale scuro */
  --c-text-body: #4f4f4f;          /* body testo */
  --c-text-muted: #8a8a93;         /* label, pretitle scuri */
  --c-text-light: #ffffff;
  --c-text-light-muted: #a9a9a9;

  /* ---- Border ---- */
  --c-border: #E5E5E8;
  --c-border-soft: #EFEFF1;
  --c-border-dark: rgba(255, 255, 255, 0.12);

  /* ---- Stati ---- */
  --c-success: #03d8b4;
  --c-error: #e74d4f;

  /* ---- Gradient brand ---- */
  --gradient-brand: linear-gradient(135deg, #C9202E 11.05%, #9C1822 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(201, 32, 46, 0.85) 0%, rgba(156, 24, 34, 0.85) 100%);
  --gradient-widget-light: linear-gradient(123deg, rgba(201, 32, 46, 0.08) 0%, rgba(201, 32, 46, 0) 100%);
  --gradient-widget-lighter: linear-gradient(123deg, rgba(201, 32, 46, 0.18) 0%, rgba(201, 32, 46, 0) 100%);
  --gradient-shadow: linear-gradient(0deg, #111222 0%, rgba(17, 18, 34, 0) 100%);
  --gradient-text-shaded: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(17, 18, 34, 0) 100%);
  --gradient-page-hero: linear-gradient(180deg, #F7F5F2 0%, #FFFFFF 100%);

  /* ---- Typography ---- */
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fw-light: 300;
  --fw-medium: 500;
  --fw-bold: 700;

  /* ---- Layout ---- */
  --max-width: 1280px;
  --header-h: 100px;
  --header-top-h: 36px;

  /* ---- Radius ---- */
  --r-card: 1rem;
  --r-btn: 0.5rem;
  --r-pill: 1.875rem;

  /* ---- Spacing ---- */
  --section-gap: 120px;
  --section-gap-mobile: 60px;

  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.25rem;
  color: var(--c-text);
  background: var(--c-bg-main);
  font-weight: var(--fw-light);
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul, ol { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--fw-light);
  color: var(--c-text);
  line-height: 1;
  letter-spacing: -0.5px;
}

.h-hero {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--fw-light);
  letter-spacing: -1px;
  line-height: 1;
}

h1, .h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-light);
  letter-spacing: -1px;
  line-height: 1;
}

h2, .h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--fw-light);
  letter-spacing: -0.5px;
  line-height: 1.05;
}

h3, .h3 {
  font-size: 1.5rem;
  font-weight: var(--fw-light);
  letter-spacing: -0.25px;
  line-height: 1.15;
}

h4, .h4 {
  font-size: 1.125rem;
  font-weight: var(--fw-medium);
  letter-spacing: -0.25px;
  line-height: 1.5rem;
}

.pretitle {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-text-muted);
  line-height: 1rem;
  display: inline-block;
}

.pretitle.accent { color: var(--c-primary); }

.description {
  font-size: 1rem;
  font-weight: var(--fw-light);
  line-height: 1.55rem;
  color: var(--c-text-body);
  margin-top: 1rem;
}

.description-lg {
  font-size: 1.25rem;
  font-weight: var(--fw-light);
  letter-spacing: -0.25px;
  line-height: 1.75rem;
  color: var(--c-text-body);
  margin-top: 1.5rem;
}

p {
  font-weight: var(--fw-light);
  line-height: 1.55rem;
  color: var(--c-text-body);
}

.text-muted { color: var(--c-text-muted); }
.text-accent { color: var(--c-primary); }

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 3rem; }
}

section {
  padding: var(--section-gap-mobile) 0;
  position: relative;
}

@media (min-width: 1024px) {
  section { padding: var(--section-gap) 0; }
}

.section-sm { padding: 40px 0 !important; }

@media (min-width: 1024px) {
  .section-sm { padding: 60px 0 !important; }
}

/* Sfondi sezione */
.bg-cream { background: var(--c-bg-cream); }
.bg-paper { background: var(--c-bg-paper); }

.bg-dark {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--c-text-light); }
.bg-dark p,
.bg-dark .description { color: rgba(255, 255, 255, 0.85); }
.bg-dark .pretitle { color: var(--c-text-light-muted); }
.bg-dark .pretitle.accent { color: var(--c-primary); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.2px;
  line-height: 1.5rem;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-gradient {
  background-image: var(--gradient-brand);
  color: var(--c-text-light);
  border: 1px solid transparent;
}

.btn-gradient:hover {
  background-image: var(--gradient-brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(201, 32, 46, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--c-text);
  color: var(--c-text);
}

.btn-outline:hover {
  background: var(--c-text);
  color: var(--c-text-light);
}

.bg-dark .btn-outline {
  border-color: var(--c-text-light);
  color: var(--c-text-light);
}

.bg-dark .btn-outline:hover {
  background: var(--c-text-light);
  color: var(--c-text);
}

.btn-plain {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.25px;
  background: transparent;
  color: var(--c-text);
  border: none;
}

.btn-plain .icon,
.btn .icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--transition);
}

.btn-plain:hover .icon,
.btn:hover .icon {
  transform: translateX(4px);
}

.btn-plain:hover { color: var(--c-primary); }

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  border: none;
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.site-header.hidden {
  transform: translateY(-100%);
}

/* Top strip bianco, sempre visibile */
.header-top-strip {
  background: var(--c-bg-main);
  color: var(--c-text);
  padding: 0.5rem 1.5rem;
  font-size: 0.72rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--c-border-soft);
}

@media (min-width: 1024px) {
  .header-top-strip { padding: 0.5rem 2.5rem; }
}

.header-top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--fw-light);
  color: var(--c-text-muted);
  flex: 0 0 auto;
}

.header-top-left strong {
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-text);
  font-size: 0.7rem;
}

.header-top-center {
  flex: 1;
  text-align: center;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  color: var(--c-text);
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.header-top-right a {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}

.header-top-right a svg {
  width: 14px;
  height: 14px;
}

.header-top-right a:hover {
  color: var(--c-primary);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .header-top-center { display: none; }
}

/* Header main — trasparente fino a 101vh, poi bianca */
.header-main {
  background: transparent;
  padding: 0 1.5rem;
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
}

.site-header.scrolled .header-main {
  background: var(--c-bg-main);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@media (min-width: 1024px) {
  .header-main { padding: 0 2rem; }
}

.header-main-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  position: relative;
  z-index: 60;
}

.header-logo img {
  height: 44px;
  width: auto;
}

/* Logo nell'header: grande, niente testo accanto */
.site-header .header-logo img { height: 76px; }
.site-header .header-logo-text { display: none; }

.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.header-logo-text strong {
  font-weight: var(--fw-bold);
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: var(--c-text);
  text-transform: uppercase;
}

.header-logo-text span {
  font-size: 0.65rem;
  font-weight: var(--fw-medium);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: 2px;
}

/* Menu pillole */
.header-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  justify-content: center;
}

.header-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.1rem;
  background: var(--c-bg-main);
  color: var(--c-text);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.25px;
  border: 1px solid var(--c-border);
  transition: all var(--transition);
  white-space: nowrap;
}

.header-menu-link:hover {
  border-color: var(--c-text);
  background: var(--c-text);
  color: var(--c-text-light);
}

.header-menu-link.highlight {
  background-image: var(--gradient-brand);
  color: var(--c-text-light);
  border-color: transparent;
}

.header-menu-link.highlight:hover {
  background-image: var(--gradient-brand-soft);
  box-shadow: 0 8px 20px rgba(201, 32, 46, 0.25);
}

.header-menu-link svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  transition: transform var(--transition);
}

.header-menu-item.has-submenu:hover .header-menu-link svg {
  transform: rotate(180deg);
}

.header-menu-item { position: relative; }

/* Submenu / Dropdown */
.header-submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--c-bg-main);
  border-radius: var(--r-card);
  padding: 1rem;
  min-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 70;
  box-shadow: 0 20px 60px rgba(17, 18, 34, 0.12);
  border: 1px solid var(--c-border);
}

.header-menu-item.has-submenu:hover .header-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.submenu-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  align-items: flex-start;
  transition: background var(--transition);
}

.submenu-item:hover { background: var(--c-bg-cream); }

.submenu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--c-primary-bg-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}

.submenu-icon svg { width: 18px; height: 18px; }

.submenu-item-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--c-text);
  margin-bottom: 2px;
}

.submenu-item-text span {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  line-height: 1.3;
  font-weight: var(--fw-light);
}

/* Hamburger */
.header-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  background: transparent;
  position: relative;
  z-index: 60;
}

.header-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all var(--transition);
}

.header-toggle span::before,
.header-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: all var(--transition);
}

.header-toggle span::before { top: -7px; }
.header-toggle span::after { top: 7px; }

.header-toggle.active span { background: transparent; }
.header-toggle.active span::before { top: 0; transform: rotate(45deg); }
.header-toggle.active span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .header-toggle { display: flex; }

  .header-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(380px, 90vw);
    background: var(--c-bg-main);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-h) + var(--header-top-h) + 1.5rem) 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    gap: 0;
    border-left: 1px solid var(--c-border);
  }

  .header-menu.active { transform: translateX(0); }

  .header-menu-link {
    background: transparent;
    color: var(--c-text);
    border: none;
    border-radius: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-border-soft);
    font-size: 1rem;
    width: 100%;
    justify-content: space-between;
  }

  .header-menu-link.highlight {
    background: var(--c-primary);
    border-radius: var(--r-btn);
    margin-top: 1rem;
    padding: 0.85rem 1.5rem;
    justify-content: center;
    color: var(--c-text-light);
  }

  .header-submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 1rem;
    min-width: 0;
    grid-template-columns: 1fr;
    display: none;
  }

  .header-menu-item.has-submenu.open .header-submenu { display: grid; }

  .submenu-item { padding: 0.5rem 0.85rem; }
}

/* ============================================
   HERO BANNER
   ============================================ */

.hero-banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--c-bg-dark);
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--header-top-h));
  color: var(--c-text-light);
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 18, 34, 0.3) 0%, rgba(17, 18, 34, 0.2) 30%, rgba(17, 18, 34, 0.95) 100%);
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 4rem;
  min-height: calc(100vh - var(--header-h) - var(--header-top-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .hero-banner-content { padding: 4rem 3rem 5rem; }
}

.hero-banner-text { max-width: 880px; }

.hero-banner-text .pretitle {
  color: var(--c-text-light);
  margin-bottom: 1rem;
}

.hero-banner-text h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: var(--fw-light);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 1.25rem;
  color: var(--c-text-light);
}

.hero-banner-text .description {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  line-height: 1.4;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-banner-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-banner-actions .btn-outline {
  border-color: var(--c-text-light);
  color: var(--c-text-light);
}

.hero-banner-actions .btn-outline:hover {
  background: var(--c-text-light);
  color: var(--c-text);
}

/* Page Hero — chiaro */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--header-top-h) + 4rem);
  padding-bottom: 5rem;
  background: var(--c-bg-cream);
  overflow: hidden;
  border-bottom: 1px solid var(--c-border-soft);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(201, 32, 46, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(201, 32, 46, 0.04) 0%, transparent 50%);
  z-index: 1;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .page-hero-inner { padding: 0 3rem; }
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: var(--fw-light);
  letter-spacing: -1px;
  line-height: 1.05;
  margin: 1.25rem 0 1rem;
  max-width: 920px;
  color: var(--c-text);
}

.page-hero .description {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 760px;
  margin-top: 1.5rem;
  color: var(--c-text-body);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-text-muted);
}

.breadcrumb a {
  color: var(--c-text-muted);
}

.breadcrumb a:hover {
  color: var(--c-text);
}

.breadcrumb .sep { opacity: 0.5; }

/* ============================================
   EDITORIAL LAUNCH (split 33/67)
   ============================================ */

.editorial-launch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .editorial-launch {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

.editorial-launch.reversed .editorial-launch-text { order: 2; }
.editorial-launch.reversed .editorial-launch-visual { order: 1; }

.editorial-launch-text .pretitle { margin-bottom: 1rem; }

.editorial-launch-text h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: var(--fw-light);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.editorial-launch-text .description {
  font-size: 1rem;
  line-height: 1.55rem;
  margin-top: 1.5rem;
}

.editorial-launch-text .btn { margin-top: 1.5rem; }

.editorial-launch-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .editorial-launch-visual.two-cols { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   CARD IMAGE (overlay sopra immagine)
   ============================================ */

.card-image {
  position: relative;
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--c-bg-cream);
  transition: transform var(--transition);
  height: 100%;
  color: var(--c-text-light);
}

.card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
  transition: background var(--transition);
  border-radius: var(--r-card);
  pointer-events: none;
}

.card-image:hover::before {
  background: rgba(17, 18, 34, 0.2);
}

.card-image-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image:hover .card-image-image {
  transform: scale(1.04);
}

.card-image-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 18, 34, 0.1) 0%, rgba(17, 18, 34, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: var(--r-card);
}

.card-image-text {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
  color: var(--c-text-light);
}

.card-image-text-top .pretitle { color: var(--c-text-light); }
.card-image-text-top { margin-bottom: auto; }

.card-image-title {
  font-size: 1.5rem;
  font-weight: var(--fw-light);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-top: 0.5rem;
  color: var(--c-text-light);
}

.card-image-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--c-text-light);
}

.card-image-cta .icon { font-size: 1.5rem; }

/* Aspect ratios */
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-1-1 { aspect-ratio: 1 / 1; }

/* ============================================
   SECTION HEADER
   ============================================ */

.section-head {
  margin-bottom: 3rem;
  max-width: 880px;
}

.section-head h2 { margin-top: 1rem; }

.section-head-flex {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .section-head-flex {
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
  }
}

.section-head-flex .left h2 { margin-top: 1rem; }
.section-head-flex .right { text-align: left; }

@media (min-width: 1024px) {
  .section-head-flex .right { text-align: right; }
}

/* ============================================
   NUMBERS / KPI
   ============================================ */

.numbers {
  background: var(--c-bg-cream);
  padding: var(--section-gap-mobile) 0;
}

@media (min-width: 1024px) {
  .numbers { padding: var(--section-gap) 0; }
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .numbers-grid { grid-template-columns: repeat(4, 1fr); }
}

.numbers-item {
  text-align: left;
  padding-left: 1.5rem;
  border-left: 1px solid var(--c-primary-bg-25);
}

.numbers-item-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  color: var(--c-primary);
}

.numbers-item-amount {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--fw-light);
  letter-spacing: -1px;
  line-height: 1;
  color: var(--c-text);
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}

.numbers-item-amount .suffix {
  font-size: 0.5em;
  color: var(--c-primary);
}

.numbers-item-label {
  font-size: 0.9rem;
  font-weight: var(--fw-light);
  color: var(--c-text-body);
  margin-top: 1rem;
  line-height: 1.3;
}

/* ============================================
   BANNER FULL
   ============================================ */

.banner-full {
  position: relative;
  min-height: 22rem;
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 3rem 2rem;
  color: var(--c-text-light);
}

@media (min-width: 1024px) {
  .banner-full { padding: 4rem; min-height: 25rem; }
}

.banner-full-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.banner-full-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-full-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 18, 34, 0.85) 0%, rgba(17, 18, 34, 0.5) 60%, rgba(17, 18, 34, 0.3) 100%);
}

.banner-full-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.banner-full-content h2 {
  margin: 1rem 0 1.25rem;
  color: var(--c-text-light);
}

.banner-full-content .pretitle { color: var(--c-text-light); }
.banner-full-content .description { color: rgba(255, 255, 255, 0.9); }

.banner-full-content .btn-plain {
  color: var(--c-text-light);
}

.banner-full-content .btn-plain:hover {
  color: var(--c-text-light);
  opacity: 0.85;
}

/* ============================================
   FEATURE GRID
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  position: relative;
  background: var(--c-bg-main);
  border-radius: var(--r-card);
  padding: 2rem;
  transition: all var(--transition);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  border-color: var(--c-primary-bg-25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 18, 34, 0.06);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--c-primary-bg-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  margin-bottom: 1.5rem;
}

.feature-card-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--c-text);
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.55rem;
  color: var(--c-text-body);
  flex: 1;
}

.feature-card .card-link {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--c-primary);
}

.feature-card .card-link .icon { font-size: 1.25rem; }

/* ============================================
   TECH SHOWCASE
   ============================================ */

.tech-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .tech-showcase {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.tech-showcase.reversed .tech-text { order: 2; }
.tech-showcase.reversed .tech-visual { order: 1; }

.tech-visual {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--c-bg-cream);
}

.tech-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-visual-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--c-bg-main);
  color: var(--c-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.tech-text h2 { margin: 1rem 0 1.25rem; }

.tech-text p { margin-bottom: 1rem; }

.tech-features {
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.75rem;
}

.tech-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.4;
  font-weight: var(--fw-light);
}

.tech-features li strong {
  font-weight: var(--fw-medium);
}

.tech-features li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  margin-top: 0.55em;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
  background: var(--c-bg-main);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.product-card:hover {
  border-color: var(--c-primary-bg-25);
  box-shadow: 0 16px 40px rgba(17, 18, 34, 0.06);
  transform: translateY(-3px);
}

.product-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-primary);
  background: var(--c-primary-bg-10);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.product-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--c-text-body);
}

.product-features {
  display: grid;
  gap: 0.65rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--c-text);
  line-height: 1.4;
  font-weight: var(--fw-light);
}

.product-features li strong {
  font-weight: var(--fw-medium);
  color: var(--c-text);
}

.product-features li svg {
  width: 16px;
  height: 16px;
  color: var(--c-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ============================================
   TABS (pagina tecnologie)
   ============================================ */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 3rem;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 1rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--c-text-muted);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  transition: color var(--transition);
}

.tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.tab:hover,
.tab.active { color: var(--c-text); }

.tab.active::after { transform: scaleX(1); }

.tab svg { width: 18px; height: 18px; }

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-primary-bg-25);
}

.timeline-item {
  position: relative;
  padding-left: 96px;
  padding-bottom: 3rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-bg-main);
  border: 1px solid var(--c-primary-bg-25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: var(--fw-light);
  color: var(--c-primary);
}

.timeline-item h3 {
  margin-bottom: 0.75rem;
}

.timeline-item p {
  max-width: 620px;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .timeline::before { left: 22px; }
  .timeline-item { padding-left: 70px; }
  .timeline-num { width: 44px; height: 44px; font-size: 1rem; }
}

/* ============================================
   TEAM (Board)
   ============================================ */

.team-category {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 4rem 0 2rem;
}

.team-category:first-child { margin-top: 0; }

.team-category h3 {
  font-size: 1.25rem;
  white-space: nowrap;
  font-weight: var(--fw-light);
}

.team-category .line {
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

.team-card {
  background: var(--c-bg-main);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: all var(--transition);
}

.team-card:hover {
  border-color: var(--c-primary-bg-25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 18, 34, 0.06);
}

.team-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f4f1ed 0%, #e8e3dc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 2.5rem;
  font-weight: var(--fw-light);
  color: var(--c-text-muted);
  letter-spacing: 0.5px;
  position: relative;
}

.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(201, 32, 46, 0.10), transparent 60%);
}

.team-info {
  padding: 1.25rem;
}

.team-info h4 {
  font-size: 1rem;
  font-weight: var(--fw-medium);
  margin-bottom: 0.25rem;
  color: var(--c-text);
}

.team-info .role {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-primary);
}

.team-info .region {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-top: 0.4rem;
  font-weight: var(--fw-light);
}

/* ============================================
   QUOTE
   ============================================ */

.quote-section {
  background: var(--c-bg-cream);
  text-align: center;
}

.quote-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.quote-mark {
  font-family: 'Georgia', serif;
  font-size: 5rem;
  color: var(--c-primary);
  line-height: 0.5;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.quote-text {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-light);
  letter-spacing: -0.25px;
  line-height: 1.35;
  margin-bottom: 2rem;
  color: var(--c-text);
}

.quote-author {
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  color: var(--c-text);
}

.quote-role {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-primary);
  margin-top: 0.5rem;
}

/* ============================================
   NEWS GRID
   ============================================ */

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-main);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: all var(--transition);
}

.news-card:hover {
  border-color: var(--c-primary-bg-25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 18, 34, 0.06);
}

.news-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms;
}

.news-card:hover .news-img img { transform: scale(1.05); }

.news-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: var(--fw-bold);
  margin-bottom: 1rem;
}

.news-meta .cat { color: var(--c-primary); }
.news-meta .date { color: var(--c-text-muted); }
.news-meta .dot { color: var(--c-text-muted); }

.news-card h3 {
  font-size: 1.2rem;
  font-weight: var(--fw-light);
  letter-spacing: -0.25px;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--c-text);
}

.news-card p {
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1.5rem;
  color: var(--c-text-body);
}

.news-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--c-text);
  margin-top: auto;
}

.news-card-cta .icon {
  font-size: 1.25rem;
  color: var(--c-primary);
}

.news-card-cta:hover { color: var(--c-primary); }

/* ============================================
   FORM
   ============================================ */

.form-card {
  background: var(--c-bg-main);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(17, 18, 34, 0.04);
}

@media (min-width: 1024px) {
  .form-card { padding: 3rem; }
}

.form-card h3 { margin-bottom: 0.5rem; }
.form-card > p { margin-bottom: 2rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--c-text-muted);
}

.form-group label .req { color: var(--c-primary); }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.85rem 1rem;
  background: var(--c-bg-paper);
  border: 1px solid var(--c-border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: var(--fw-light);
  color: var(--c-text);
  transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--c-text-muted); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--c-primary);
  background: var(--c-bg-main);
  box-shadow: 0 0 0 3px var(--c-primary-bg-10);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--c-text-body);
  font-weight: var(--fw-light);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.form-check input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--c-primary);
}

.form-check a {
  color: var(--c-primary);
  text-decoration: underline;
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
  }
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--c-border);
}

.contact-item:first-of-type { border-top: none; padding-top: 0; }

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--c-primary-bg-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}

.contact-item-icon svg { width: 18px; height: 18px; }

.contact-item-text h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: var(--fw-bold);
  color: var(--c-text-muted);
  margin-bottom: 0.35rem;
}

.contact-item-text p {
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.5rem;
  font-weight: var(--fw-light);
}

.contact-item-text a:hover { color: var(--c-primary); }

/* Map */
.map-wrap {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-bg-cream);
  border: 1px solid var(--c-border);
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   ACCORDION
   ============================================ */

.accordion-item {
  border-top: 1px solid var(--c-border);
}

.accordion-item:last-child { border-bottom: 1px solid var(--c-border); }

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: var(--fw-medium);
  letter-spacing: -0.25px;
  color: var(--c-text);
  transition: color var(--transition);
}

.accordion-trigger:hover { color: var(--c-primary); }

.accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  background: var(--c-text);
  position: absolute;
  transition: all var(--transition);
}

.accordion-icon::before {
  width: 12px;
  height: 1px;
}

.accordion-icon::after {
  width: 1px;
  height: 12px;
  transition: opacity var(--transition);
}

.accordion-item.open .accordion-icon {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.accordion-item.open .accordion-icon::before,
.accordion-item.open .accordion-icon::after { background: var(--c-text-light); }
.accordion-item.open .accordion-icon::after { opacity: 0; }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-content > div {
  padding: 0 0 2rem;
  max-width: 760px;
}

.accordion-content p {
  font-size: 0.95rem;
  color: var(--c-text-body);
}

/* ============================================
   FOOTER (resta scuro come Ecomondo)
   ============================================ */

.site-footer {
  background: var(--c-bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}

@media (min-width: 1024px) {
  .site-footer { padding: 5rem 0 2rem; }
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand .header-logo { margin-bottom: 1.5rem; }
.footer-brand .header-logo-text strong { color: var(--c-text-light); }
.footer-brand .header-logo-text span { color: var(--c-text-light-muted); }

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 360px;
  margin-bottom: 1.5rem;
  line-height: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-light);
  transition: all var(--transition);
}

.footer-social:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: translateY(-2px);
}

.footer-social svg { width: 14px; height: 14px; }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-text-light-muted);
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: var(--fw-light);
}

.footer-col a:hover { color: var(--c-primary); }

.footer-col p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55rem;
  margin-bottom: 0.5rem;
  font-weight: var(--fw-light);
}

.footer-col strong {
  color: var(--c-text-light);
  font-weight: var(--fw-medium);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--c-text-light-muted);
}

.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--c-text-light-muted); }
.footer-bottom-links a:hover { color: var(--c-text-light); }

/* ============================================
   PILLARS / VALORI
   ============================================ */

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--c-border);
}

@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--c-border);
  transition: background var(--transition);
  background: var(--c-bg-main);
}

@media (min-width: 768px) {
  .pillar { border-right: 1px solid var(--c-border); }
  .pillar:last-child { border-right: none; }
}

.pillar:hover { background: var(--c-bg-cream); }

.pillar-num {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-primary);
  display: block;
  margin-bottom: 1.5rem;
}

.pillar h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--c-text);
}

.pillar p {
  font-size: 0.95rem;
  color: var(--c-text-body);
}

/* ============================================
   STORY CARDS
   ============================================ */

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
}

.story-card {
  background: var(--c-bg-main);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.story-card:hover {
  border-color: var(--c-primary-bg-25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 18, 34, 0.06);
}

.story-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-body {
  padding: 2rem;
  flex: 1;
}

.story-body .pretitle {
  margin-bottom: 0.75rem;
}

.story-body h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--c-text);
}

.story-quote {
  font-size: 1rem;
  font-weight: var(--fw-light);
  font-style: italic;
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--c-primary);
  padding-left: 1rem;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}

.story-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-medium);
  color: var(--c-text-light);
  font-size: 0.9rem;
}

.story-author-name {
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  color: var(--c-text);
}

.story-author-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-text-muted);
  font-weight: var(--fw-bold);
}

/* ============================================
   LOCATIONS
   ============================================ */

.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .locations-grid { grid-template-columns: repeat(3, 1fr); }
}

.location-card {
  background: var(--c-bg-main);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 2rem;
  transition: all var(--transition);
}

.location-card:hover {
  border-color: var(--c-primary-bg-25);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(17, 18, 34, 0.05);
}

.location-card .region-tag {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.location-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--c-text);
}

.location-card .location-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--c-text-body);
  font-weight: var(--fw-light);
}

.location-card .location-info div {
  display: flex;
  align-items: flex-start;
}

.location-card .location-info svg {
  width: 14px;
  height: 14px;
  color: var(--c-primary);
  margin-right: 0.5rem;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ============================================
   PROJECTS
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  position: relative;
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--c-bg-cream);
  color: var(--c-text-light);
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(17, 18, 34, 0.15);
}

.project-card-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms;
}

.project-card:hover .project-card-img img { transform: scale(1.05); }

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 18, 34, 0.1) 0%, rgba(17, 18, 34, 0.92) 100%);
  z-index: 1;
}

.project-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-card-tag {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--c-primary);
  color: var(--c-text-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  z-index: 3;
}

.project-card h3 {
  font-size: 1.35rem;
  color: var(--c-text-light);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.project-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.project-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-text-light);
}

.project-card-cta .icon { font-size: 1.25rem; color: var(--c-primary); }

/* ============================================
   CTA SECTION (scura per contrasto)
   ============================================ */

.cta-section {
  background: var(--c-bg-dark);
  position: relative;
  overflow: hidden;
  color: var(--c-text-light);
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 32, 46, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(201, 32, 46, 0.08) 0%, transparent 50%);
}

.cta-section h2 { color: var(--c-text-light); }
.cta-section p,
.cta-section .description { color: rgba(255, 255, 255, 0.85); }
.cta-section .pretitle.accent { color: var(--c-primary); }

.cta-section .btn-outline {
  border-color: var(--c-text-light);
  color: var(--c-text-light);
}

.cta-section .btn-outline:hover {
  background: var(--c-text-light);
  color: var(--c-text);
}

.cta-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .cta-content {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
  }
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   UTILITY
   ============================================ */

.text-center { text-align: center; }
.no-top-pad { padding-top: 0 !important; }
.no-bottom-pad { padding-bottom: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
