
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body, h1, h2, h3, h4, h5, h6, p, a, li, button, input, textarea, label, small {
  font-family: 'Poppins', sans-serif !important;
}


/* ===== Los Aztecas — FIX PACK v1 (palette preserved) ===== */

/* 1) Fonts — Titles (serif) + Body (sans) */
800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --title-font: 'Poppins', sans-serif;
  --body-font: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;

  /* Rhythm scale */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 60px;

  /* Card styling (non-intrusive, uses current palette) */
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--title-font);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

h1, .h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; }
h2, .h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 800; }
h3, .h3 { font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; }

p, li, a, button, .btn, input, textarea, label, small {
  font-family: var(--body-font);
  line-height: 1.6;
}

/* 2) Card system for "Valori" & "Cronologia" (semantic-agnostic selectors) */
section[id*="valori" i] .card,
section[class*="valori" i] .card,
section[id*="cronologia" i] .card,
section[class*="cronologia" i] .card,
section[id*="valori" i] > div,
section[class*="valori" i] > div,
section[id*="cronologia" i] > div,
section[class*="cronologia" i] > div,
.ul-valori > li,
.ul-cronologia > li {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: saturate(120%) blur(2px);
}

section[id*="valori" i] .card:hover,
section[class*="valori" i] .card:hover,
section[id*="cronologia" i] .card:hover,
section[class*="cronologia" i] .card:hover,
section[id*="valori" i] > div:hover,
section[class*="valori" i] > div:hover,
section[id*="cronologia" i] > div:hover,
section[class*="cronologia" i] > div:hover,
.ul-valori > li:hover,
.ul-cronologia > li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

/* Title inside cards */
.card-title, 
section[id*="valori" i] h3, 
section[class*="valori" i] h3, 
section[id*="cronologia" i] h3, 
section[class*="cronologia" i] h3 {
  font-family: var(--title-font);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

/* Small description text in cards */
.card-text, 
section[id*="valori" i] p, 
section[class*="valori" i] p,
section[id*="cronologia" i] p,
section[class*="cronologia" i] p {
  opacity: 0.95;
  font-size: 0.98rem;
}

/* Optional icon style (if icons/SVG exist) */
.card-icon, [class*="icon-"], .fa, .fa-solid, .fa-regular, .fa-light, .fa-duotone, .la, .las, .lar {
  margin-right: var(--space-sm);
  font-size: 1.2em;
  vertical-align: middle;
}

/* 3) Images — normalization + subtle uniform filter */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  filter: brightness(0.98) saturate(1.06) contrast(1.02) hue-rotate(-6deg);
  transition: transform .3s ease, filter .3s ease;
}

img:hover {
  transform: scale(1.015);
  filter: brightness(1.02) saturate(1.08);
}

/* 3b) Utility overlay class if used in markup */
.img-overlay {
  position: relative;
  overflow: hidden;
}
.img-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 40, 50, 0.18), rgba(0, 80, 70, 0.18));
  pointer-events: none;
  transition: opacity .3s ease;
}
.img-overlay:hover::after { opacity: 0.0; }

/* 4) Spacing normalization across sections */
section, .section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.container, .wrap, .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Buttons — transitions */
button, .btn, [role="button"], .button {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
  will-change: transform;
}

button:hover, .btn:hover, [role="button"]:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

button:active, .btn:active, [role="button"]:active, .button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Links — subtle underline animation */
a {
  transition: color .2s ease, opacity .2s ease, text-underline-offset .2s ease;
  text-underline-offset: 2px;
}
a:hover { text-underline-offset: 4px; }

/* Utility: grid for values/timeline if needed */
.grid-vals, .grid-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

/* Respect existing palette: DO NOT override primary/brand colors */


/* Ensure turquoise cursor visible everywhere */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00cfcf;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
