/* =========================================
   Autoscuole Trentine — Azzurro Alpino Theme
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@1,700;1,800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Mono:wght@400;500&display=swap');

/* ===== FONT LOCALI ===== */
@font-face {
  font-family: 'Bedrock';
  src: url('../fonts/Bedrock-Normal.woff2') format('woff2'),
       url('../fonts/Bedrock-Normal.otf')   format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura Bk BT';
  src: url('../fonts/FuturaBkBT-Book.woff2') format('woff2'),
       url('../fonts/FuturaBkBT-Book.otf')   format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Domestos';
  src: url('../fonts/Domes-Regular.woff2') format('woff2'),
       url('../fonts/Domes-Regular.ttf')   format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Domestos';
  src: url('../fonts/Domes-RoughG.woff2') format('woff2'),
       url('../fonts/Domes-RoughG.ttf')   format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Domestos';
  src: url('../fonts/Domes-Italic.woff2') format('woff2'),
       url('../fonts/Domes-Italic.ttf')   format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --sky:        #0EA5E9;
  --sky-dark:   #0284C7;
  --sky-light:  #BAE6FD;
  --sky-bg:     #EFF6FF;
  --navy:       #0F3460;
  --cyan:       #22D3EE;
  --white:      #FFFFFF;
  --slate-50:   #F8FAFC;
  --slate-100:  #F1F5F9;
  --slate-200:  #E2E8F0;
  --slate-300:  #CBD5E1;
  --slate-400:  #94A3B8;
  --slate-500:  #64748B;
  --slate-600:  #475569;
  --slate-700:  #334155;
  --slate-800:  #1E293B;
  --slate-900:  #0F172A;
  --green:      #22C55E;
  --green-bg:   #F0FDF4;
  --radius:     12px;
  --shadow:     0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--slate-200);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
  white-space: nowrap;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--cyan) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 7px 13px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-link:hover  { background: var(--slate-100); color: var(--navy); }
.nav-link.active { background: var(--sky); color: white; }

.nav-cta {
  padding: 9px 18px;
  background: var(--sky);
  color: white;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--sky-dark); transform: translateY(-1px); }

/* ===== MAC CHROME ===== */
.mac-window {
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  background: white;
  transition: all 0.3s ease;
}

.mac-window.collapsed .mac-body { display: none; }
.mac-window.compact  .mac-body { max-height: 320px; overflow-y: auto; }

.mac-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ECECEC;
  padding: 10px 14px;
  border-bottom: 1px solid #D8D8D8;
  user-select: none;
  flex-shrink: 0;
}

.mac-dots { display: flex; gap: 7px; align-items: center; }

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  flex-shrink: 0;
  position: relative;
}

.mac-dot:hover { filter: brightness(0.82); transform: scale(1.1); }
.mac-dot.red    { background: #FF5F57; }
.mac-dot.yellow { background: #FFBD2E; }
.mac-dot.green  { background: #28C840; }

.mac-dot .mac-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--slate-800);
  color: white;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.mac-dot:hover .mac-tooltip { opacity: 1; }

.mac-bar-title {
  flex: 1;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mac-bar-spacer { width: 36px; }

/* ===== HERO (homepage) ===== */
.hero {
  background: linear-gradient(180deg, var(--sky-bg) 0%, var(--slate-50) 80%);
  padding: 80px 24px 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky-light);
  color: var(--sky-dark);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--sky); }

.hero-sub {
  font-size: 18px;
  color: var(--slate-500);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.mountains-wrap { position: relative; margin-top: 8px; }

/* ===== HERO SMALL (inner pages) ===== */
.hero-sm {
  background: linear-gradient(180deg, var(--sky-bg) 0%, white 100%);
  padding: 40px 24px 32px;
  border-bottom: 1px solid var(--slate-200);
}

.hero-sm .hero-inner { text-align: left; }

.hero-sm h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero-sm p {
  font-size: 16px;
  color: var(--slate-500);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--slate-400);
  margin-bottom: 12px;
}

.breadcrumb a { color: var(--sky); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--slate-300); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1;
}

.btn-primary {
  background: var(--sky);
  color: white;
  border-color: var(--sky);
}

.btn-primary:hover {
  background: var(--sky-dark);
  border-color: var(--sky-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14,165,233,0.30);
}

.btn-outline {
  background: white;
  color: var(--sky);
  border-color: var(--sky);
}

.btn-outline:hover {
  background: var(--sky);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-600);
  border-color: var(--slate-200);
}

.btn-ghost:hover { background: var(--slate-100); }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-link { text-decoration: none; color: inherit; display: block; }

/* ===== SECTIONS ===== */
.section { padding: 72px 24px; }
.section-sm { padding: 48px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 48px; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--slate-500);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

/* ===== ICON BOX ===== */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.ib-sky   { background: #EFF6FF; }
.ib-cyan  { background: #ECFEFF; }
.ib-navy  { background: #EEF2FF; }
.ib-green { background: var(--green-bg); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.badge-sky   { background: #EFF6FF; color: var(--sky-dark); }
.badge-green { background: var(--green-bg); color: #15803D; }
.badge-navy  { background: #EEF2FF; color: var(--navy); }
.badge-slate { background: var(--slate-100); color: var(--slate-600); }

/* ===== CHIPS / FILTERS ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--slate-200);
  background: white;
  color: var(--slate-600);
  transition: all 0.15s;
  user-select: none;
}

.chip:hover, .chip.active {
  border-color: var(--sky);
  background: var(--sky);
  color: white;
}

/* ===== SEARCH ===== */
.search-wrap { position: relative; }

.search-input {
  width: 100%;
  padding: 11px 44px 11px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--slate-800);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.search-input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
  font-size: 16px;
}

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; }

thead th {
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

thead th:first-child { border-radius: 0; }

tbody tr { border-bottom: 1px solid var(--slate-100); transition: background 0.1s; }
tbody tr:hover { background: var(--slate-50); }
tbody tr:last-child { border-bottom: none; }

tbody td { padding: 12px 16px; color: var(--slate-700); font-size: 14px; }

/* ===== STEPS ===== */
.steps { display: flex; gap: 0; flex-wrap: wrap; }

.step {
  flex: 1;
  min-width: 200px;
  padding: 24px;
  position: relative;
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--sky);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 12px;
}

.step h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step p  { font-size: 14px; color: var(--slate-500); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--navy);
  padding: 28px 24px;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.stat { text-align: center; color: white; }
.stat-num { font-size: 34px; font-weight: 800; color: var(--sky-light); display: block; line-height: 1; margin-bottom: 4px; }
.stat-lbl { font-size: 14px; color: rgba(255,255,255,0.65); }

/* ===== CHECKLIST ===== */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--slate-700);
}

.checklist li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--green-bg);
  color: #15803D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== CALLOUT ===== */
.callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.callout-info  { background: #EFF6FF; border-left: 3px solid var(--sky); color: var(--navy); }
.callout-warn  { background: #FFFBEB; border-left: 3px solid #F59E0B; color: #92400E; }
.callout-green { background: var(--green-bg); border-left: 3px solid var(--green); color: #14532D; }

/* ===== FOOTER ===== */
footer { margin-top: auto; }

.footer-upper {
  background: #EFF6FF;
  padding: 52px 24px 40px;
  color: var(--navy);
}

.footer-lower {
  background: var(--navy);
  padding: 0 24px 32px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 0;
}

.footer-brand .footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(15,52,96,0.55);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15,52,96,0.40);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: rgba(15,52,96,0.65);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.15s;
}

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

.footer-col address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(15,52,96,0.55);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: var(--sky-light); text-decoration: none; }

/* ===== UTILITIES ===== */
.text-sky   { color: var(--sky); }
.text-navy  { color: var(--navy); }
.text-muted { color: var(--slate-500); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mono   { font-family: 'DM Mono', monospace; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ===== DIVIDER ===== */
.divider { border: none; border-top: 1px solid var(--slate-200); margin: 24px 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { gap: 0; }
  .nav-link  { padding: 7px 10px; font-size: 13px; }
}

/* ===== HAMBURGER / MOBILE NAV ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--slate-100); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,52,96,0.35);
  z-index: 299;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-mobile-overlay.open { display: block; }

.nav-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 90vw);
  height: 100vh;
  background: white;
  z-index: 400;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile-menu.open { right: 0; }

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--slate-200);
  flex-shrink: 0;
}

.nav-mobile-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: var(--slate-100);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  color: var(--slate-700);
}
.nav-mobile-close:hover { background: var(--slate-200); }

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  padding: 10px 10px;
  flex: 1;
  gap: 2px;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
  transition: all 0.15s;
}
.nav-mobile-link:hover  { background: var(--slate-100); color: var(--navy); }
.nav-mobile-link.active { background: var(--sky); color: white; }

.nav-mobile-cta {
  margin: 10px 12px 16px;
  padding: 14px;
  background: var(--sky);
  color: white;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
  flex-shrink: 0;
  display: block;
}
.nav-mobile-cta:hover { background: var(--sky-dark); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .hero       { padding: 48px 16px 0; }
  .section    { padding: 48px 16px; }
  .section-sm { padding: 32px 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-upper { padding: 36px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-inner { gap: 36px; }
  .steps { flex-direction: column; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 28px; }
  .hero h1 { font-size: 28px; }
}

/* ===== STORIA TIMELINE ===== */
.storia-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding: 20px 0 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Horizontal connecting line */
.storia-timeline::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(244,121,32,0.6) 0%,
    rgba(244,121,32,0.6) 60%,
    rgba(14,165,233,0.8) 75%,
    #0EA5E9 100%
  );
  z-index: 0;
}

.storia-item {
  flex: 1;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.storia-year {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: rgba(244,121,32,0.8);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.storia-year--final {
  color: #0EA5E9;
}

.storia-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F47920;
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 3px rgba(244,121,32,0.3);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.storia-dot--final {
  background: #0EA5E9;
  box-shadow: 0 0 0 4px rgba(14,165,233,0.4), 0 0 20px rgba(14,165,233,0.5);
  width: 18px;
  height: 18px;
}

.storia-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 18px 14px;
  width: 100%;
  max-width: 160px;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
  cursor: default;
}

.storia-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.storia-card--final {
  background: rgba(14,165,233,0.12);
  border-color: rgba(14,165,233,0.3);
  box-shadow: 0 8px 32px rgba(14,165,233,0.2);
}

.storia-card--final:hover {
  background: rgba(14,165,233,0.18);
}

.storia-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  min-height: 56px;
  align-items: center;
}

.storia-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.storia-desc strong {
  color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
  .storia-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 24px;
  }
  .storia-timeline::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg,
      rgba(244,121,32,0.6) 0%,
      rgba(244,121,32,0.6) 70%,
      #0EA5E9 100%
    );
  }
  .storia-item {
    flex-direction: row;
    align-items: flex-start;
    min-width: auto;
    gap: 16px;
    padding: 0 0 32px 0;
  }
  .storia-year {
    writing-mode: horizontal-tb;
    min-width: 36px;
    text-align: right;
    padding-top: 2px;
    font-size: 11px;
  }
  .storia-dot { margin: 4px 0 0; flex-shrink: 0; }
  .storia-card { max-width: none; text-align: left; }
  .storia-logo-wrap { justify-content: flex-start; }
}
