/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #ffb223;
  --yellow-light: #ffd382;
  --blue-light: #eaefff;
  --bg: #f9f9fb;
  --text: #212326;
  --white: #ffffff;
  --font: 'Afacad', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.section-content a:not(.blog-card):not(.blog-card *),
.column a:not(.blog-card):not(.blog-card *),
.accordion-content a { color: var(--yellow); font-weight: 600; }
.section-content a:not(.blog-card):not(.blog-card *):hover,
.column a:not(.blog-card):not(.blog-card *):hover,
.accordion-content a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ===========================
   TYPOGRAPHY
=========================== */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p { margin-bottom: 1rem; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  border: none;
  text-align: center;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--text); }
.btn-secondary { background: transparent; color: var(--text); border: 2px solid var(--text); }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.9rem; }

/* ===========================
   HEADER
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}
.logo-link { flex-shrink: 0; }
.logo { height: 36px; width: auto; }

.main-nav { flex: 1; }
.main-nav > ul { display: flex; gap: 1.5rem; align-items: center; }
.main-nav a { font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.main-nav a:hover { color: var(--yellow); }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 200;
}
.dropdown li a { display: block; padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.dropdown li a:hover { background: var(--bg); color: var(--yellow); }
.has-dropdown:hover .dropdown { display: block; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.lang-link { font-size: 0.85rem; font-weight: 600; color: var(--text); opacity: 0.6; }
.lang-link:hover { opacity: 1; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ===========================
   HERO
=========================== */
.hero {
  background: var(--white);
  min-height: calc(100vh - 68px);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
}
.hero-align-left .hero-inner { align-items: flex-start; text-align: left; }

.hero-logo { }
.hero-logo img { max-width: 600px; width: 100%; height: auto; margin: 0 auto; }
.hero-align-left .hero-logo img { margin: 0; }

.hero-title { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; margin: 0; }
.hero-subtitle { font-size: 1.15rem; opacity: 0.8; max-width: 640px; margin: 0; }
.hero-actions { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; margin: 0; }
.hero-align-left .hero-actions { justify-content: flex-start; }

/* ===========================
   SECTIONS
=========================== */
.section { padding: 4rem 1.5rem; }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-subtitle { text-align: center; font-size: 1.1rem; opacity: 0.7; margin-bottom: 2.5rem; }
.section-content { }

.bg-white { background: var(--white); }
.bg-yellow { background: var(--yellow); }
.bg-yellow-light { background: var(--yellow-light); }
.bg-light { background: var(--bg); }
.bg-blue-light { background: var(--blue-light); }

.pad-small { padding: 2rem 1.5rem; }
.pad-medium { padding: 4rem 1.5rem; }
.pad-large { padding: 6rem 1.5rem; }

/* ===========================
   GRID
=========================== */
.grid { display: grid; gap: 1.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-gap-small { gap: 1rem; }
.grid-gap-medium { gap: 1.5rem; }
.grid-gap-large { gap: 2.5rem; }

/* ===========================
   CARDS
=========================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card .card-body { flex: 1; display: flex; flex-direction: column; }
.card .card-text { flex: 1; }
.card-image { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-icon { width: 64px; height: 64px; margin: 1.25rem auto 0; }
.card-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin: 0.75rem 1.25rem 0;
}
.card-body { padding: 1.25rem; }
.card-title { margin-bottom: 0.5rem; font-size: 1rem; font-weight: 700; }
.card-text { font-size: 0.9rem; opacity: 0.8; }
.card-link { display: inline-block; margin-top: 0.75rem; font-weight: 600; color: var(--yellow); }

.card-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 35px;
  border-top: 1px solid rgba(0,0,0,0.12);
  border-right: 3px solid rgba(0,0,0,0.12);
  border-bottom: 3px solid rgba(0,0,0,0.12);
  border-left: 3px solid rgba(0,0,0,0.12);
  box-shadow: none;
}
.card-feature:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card-feature .card-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  border-radius: 0;
  flex-shrink: 0;
}
.card-feature .card-body { padding: 0; flex: 1; display: flex; flex-direction: column; }
.card-feature .card-title {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}
.card-feature .card-text { font-size: 0.9rem; text-align: center; flex: 1; }

.card-usecase .card-image { aspect-ratio: 1; }
.card-usecase .card-title { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ===========================
   FEATURE (immagine + testo)
=========================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}
.feature-image-left { direction: rtl; }
.feature-image-left > * { direction: ltr; }
.feature-title { font-size: 1.3rem; margin-bottom: 1rem; }
.feature-media img { border-radius: var(--radius); }

/* ===========================
   VIDEO
=========================== */
.video-wrapper { border-radius: var(--radius); overflow: hidden; }
.video-wrapper video { width: 100%; display: block; }

/* ===========================
   ROW
=========================== */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: stretch;
}
.row > .card,
.row > .column { flex: 1 1 0; min-width: 0; align-self: stretch; }

/* cols espliciti */
.row-cols-1 > * { flex: 0 0 100%; }
.row-cols-2 > * { flex: 0 0 calc(50% - 0.75rem); }
.row-cols-3 > * { flex: 0 0 calc(33.333% - 1rem); }
.row-cols-4 > * { flex: 0 0 calc(25% - 1.125rem); }

/* gap */
.row-gap-none { gap: 0; }
.row-gap-small { gap: 0.75rem; }
.row-gap-medium { gap: 1.5rem; }
.row-gap-large { gap: 2.5rem; }

/* margin top tra righe */
.row-mt-none { margin-top: 0; }
.row-mt-small { margin-top: 1rem; }
.row-mt-medium { margin-top: 1.5rem; }
.row-mt-large { margin-top: 2.5rem; }

/* valign */
.row-valign-top { align-items: stretch; }
.row-valign-center { align-items: center; }
.row-valign-bottom { align-items: flex-end; }

@media (max-width: 900px) {
  .row-cols-3 > *,
  .row-cols-4 > * { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 640px) {
  .row > .card,
  .row > .column,
  .row-cols-2 > *,
  .row-cols-3 > *,
  .row-cols-4 > * { flex: 0 0 100%; }
}

/* ===========================
   BUTTONS GROUP
=========================== */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.buttons-center { justify-content: center; }
.buttons-left { justify-content: flex-start; }
.buttons-right { justify-content: flex-end; }

/* ===========================
   COLUMNS
=========================== */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.columns-gap-small { gap: 1rem; }
.columns-gap-medium { gap: 1.5rem; }
.columns-gap-large { gap: 2.5rem; }
.columns-valign-top { align-items: flex-start; }
.columns-valign-center { align-items: center; }
.columns-valign-bottom { align-items: flex-end; }

.columns-2 > .column { flex: 1 1 calc(50% - 1.5rem); }
.columns-3 > .column { flex: 1 1 calc(33.333% - 1.5rem); }
.columns-4 > .column { flex: 1 1 calc(25% - 1.5rem); }

@media (max-width: 900px) {
  .columns-3 > .column,
  .columns-4 > .column { flex: 1 1 calc(50% - 1rem); }
}
@media (max-width: 640px) {
  .columns-2 > .column,
  .columns-3 > .column,
  .columns-4 > .column { flex: 1 1 100%; }
}

/* ===========================
   PAGE CONTENT
=========================== */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ===========================
   PAGE HEADER
=========================== */
.page-header {
  padding: 4rem 1.5rem;
}
.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  max-width: 800px;
}
.page-header-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.page-header-subtitle {
  font-size: 1.15rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}
.page-header-content {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.85;
}
.page-header-content p { margin-bottom: 0.75rem; }
.page-header-content p:last-child { margin-bottom: 0; }

/* CTA section centrata */
.section.section-cta .section-content,
.section.section-cta .prose,
.section.section-cta .prose h2,
.section.section-cta .prose h3,
.section.section-cta .prose p { text-align: center; }

/* ===========================
   ROADMAP
=========================== */
.roadmap { max-width: 860px; margin: 0 auto; }

.roadmap-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 0.75rem; }
.roadmap-subtitle { text-align: center; font-size: 1.05rem; opacity: 0.65; margin-bottom: 4rem; }

.roadmap-track {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 2rem;
}
.roadmap-track::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 27px;
  right: 27px;
  height: 4px;
  background: rgba(0,0,0,0.1);
  z-index: 0;
}
.roadmap-progress {
  position: absolute;
  top: 27px;
  left: 27px;
  height: 4px;
  background: var(--yellow);
  z-index: 1;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.roadmap-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.step-dot {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
  color: rgba(0,0,0,0.3);
  transition: all 0.35s ease;
  margin-bottom: 0.6rem;
}
.step-label {
  font-size: 0.75rem; font-weight: 600;
  text-align: center; opacity: 0.45;
  transition: opacity 0.3s;
  line-height: 1.3; max-width: 100px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.roadmap-step.done .step-dot { background: var(--yellow); border-color: var(--yellow); color: var(--text); }
.roadmap-step.done .step-label { opacity: 0.8; }
.roadmap-step.active .step-dot { background: var(--yellow); border-color: var(--yellow); color: var(--text); box-shadow: 0 0 0 6px rgba(255,178,35,0.25); transform: scale(1.1); }
.roadmap-step.active .step-label { opacity: 1; color: #b07a00; }

.roadmap-panel {
  background: var(--white);
  border-radius: 20px;
  border-left: 5px solid var(--yellow);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  min-height: 140px;
}
.panel-content { display: none; animation: rmFadeIn 0.4s ease; }
.panel-content.active { display: block; }
@keyframes rmFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.panel-step-num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); margin-bottom: 0.4rem; }
.panel-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; }
.panel-text { font-size: 0.98rem; line-height: 1.65; opacity: 0.75; }

.roadmap-nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  background: var(--white); font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--text);
}
.nav-btn:hover:not(:disabled) { background: var(--yellow); border-color: var(--yellow); }
.nav-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.nav-counter { font-size: 0.9rem; font-weight: 600; opacity: 0.5; min-width: 48px; text-align: center; }

.roadmap-autoplay-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-top: 1rem;
  font-size: 0.8rem; opacity: 0.5; cursor: pointer; user-select: none;
}
.roadmap-autoplay-toggle:hover { opacity: 0.8; }
.autoplay-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: rmPulse 1.5s infinite; }
.roadmap-autoplay-toggle.paused .autoplay-dot { animation: none; background: rgba(0,0,0,0.3); }
@keyframes rmPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

@media (max-width: 600px) {
  .step-dot { width: 40px; height: 40px; font-size: 0.9rem; }
  .step-label { font-size: 0.65rem; max-width: 68px; }
  .roadmap-track::before, .roadmap-progress { top: 20px; }
}

/* ===========================
   CHAT BUBBLES
=========================== */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
}
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}
.chat-msg-user { flex-direction: row; }
.chat-msg-ai { flex-direction: row-reverse; }

.chat-bubble {
  max-width: 75%;
  padding: 0.7rem 1rem;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.chat-bubble-user {
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.chat-bubble-ai {
  background: var(--yellow);
  border-bottom-right-radius: 4px;
  color: var(--text);
  font-weight: 500;
}
.chat-bubble p { margin: 0; }

.chat-avatar { flex-shrink: 0; }
.chat-avatar-user {
  font-size: 1.4rem;
  line-height: 1;
}
.chat-avatar-ai img {
  width: 32px;
  height: auto;
  display: block;
}

/* ===========================
   BLOG IMAGE ROW
=========================== */
.blog-image-row {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  align-items: flex-start;
}
.blog-image-col {
  display: flex;
  flex-direction: column;
}
.blog-image-col picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}
.blog-image-col picture img,
.blog-image-col > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.blog-image-caption {
  font-size: 0.78rem;
  opacity: 0.5;
  text-align: center;
  margin-top: 0.2rem;
  font-style: italic;
}
@media (max-width: 640px) {
  .blog-image-row { flex-direction: column; gap: 1rem; }
  .blog-image-col {
    width: 100% !important;
    height: auto !important;
  }
  .blog-image-col picture { height: auto !important; }
  .blog-image-col picture img { height: auto !important; }
}

/* ===========================
   BLOG
=========================== */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.blog-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-date { font-size: 0.78rem; opacity: 0.45; margin-bottom: 0.5rem; display: block; }
.blog-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.35; }
.blog-card-excerpt { font-size: 0.88rem; opacity: 0.7; line-height: 1.6; flex: 1; }
.blog-card-read { display: inline-block; margin-top: 1rem; font-size: 0.85rem; font-weight: 700; color: var(--yellow); }

/* Blog post */
.blog-post-header {
  padding: 4rem 1.5rem;
}
.blog-post-header-inner {
  max-width: 860px;
  margin: 0 auto;
}
.blog-post-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  background: var(--text);
}
.blog-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-post-meta { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.blog-post-date { font-size: 0.82rem; opacity: 0.5; }
.blog-post-source { font-size: 0.82rem; color: var(--yellow); font-weight: 600; }
.blog-post-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.blog-post-description { font-size: 1.1rem; opacity: 0.7; line-height: 1.6; }

.blog-post-body { padding: 3rem 1.5rem; }
.blog-post-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}
.blog-post-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 0.75rem; }
.blog-post-content h3 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.blog-post-content p { margin-bottom: 1.25rem; }
.blog-post-content strong { font-weight: 700; }
.blog-post-content a { color: var(--yellow); font-weight: 600; }
.blog-post-content a:hover { text-decoration: underline; }
.blog-post-content hr { border: none; border-top: 1px solid rgba(0,0,0,0.1); margin: 2rem 0; }
.blog-post-content em { font-style: italic; opacity: 0.7; font-size: 0.9rem; }

/* Blog more link */
.blog-more { text-align: center; margin-top: 2rem; }

/* Blog section in homepage */
.blog-section-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ===========================
   LLM RANKING
=========================== */
.llm-ranking {
  font-family: var(--font);
}

/* Header */
.llm-ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.llm-ranking-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.llm-ranking-badge {
  background: var(--text);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.llm-ranking-date { font-size: 0.85rem; opacity: 0.5; }
.llm-ranking-source { font-size: 0.8rem; opacity: 0.5; }
.llm-ranking-source a { color: var(--yellow); }
.llm-adp-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(255,178,35,0.12);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
}

/* PODIO */
.llm-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  height: 220px;
}
.llm-podium-item {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-radius: 12px 12px 0 0;
  padding: 1rem 0.75rem 0.5rem;
  text-align: center;
}
.llm-podium-1 {
  background: linear-gradient(180deg, #fff8e6 0%, #fff3cc 100%);
  border: 2px solid var(--yellow);
  z-index: 2;
}
.llm-podium-2 {
  background: #f5f5f5;
  border: 2px solid #ccc;
  opacity: 0.9;
}
.llm-podium-3 {
  background: #f5f0eb;
  border: 2px solid #d4a574;
  opacity: 0.9;
}
.llm-podium-rank {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.llm-podium-1 .llm-podium-rank { color: #b07a00; }
.llm-podium-2 .llm-podium-rank { color: #888; }
.llm-podium-3 .llm-podium-rank { color: #a0714a; }
.llm-podium-name {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.llm-podium-provider { font-size: 0.72rem; opacity: 0.55; margin-bottom: 0.5rem; }
.llm-podium-score {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.llm-podium-1 .llm-podium-score { color: #b07a00; }
.llm-adp-tag {
  position: absolute;
  top: -12px;
  background: var(--yellow);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
}
.llm-adp.llm-podium-item { align-self: flex-end; }

/* TABELLA */
.llm-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1.5px solid rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}
.llm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.llm-table th {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  font-size: 0.72rem;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.llm-th-model { text-align: left !important; }
.llm-th-rank { width: 48px; }
.llm-th-net { width: 180px; text-align: left !important; }
.llm-th-sig { width: 100px; }

.llm-row { border-bottom: 1px solid rgba(0,0,0,0.05); transition: background 0.15s; }
.llm-row:hover { background: rgba(255,178,35,0.04); }
.llm-row:last-child { border-bottom: none; }
.llm-row-adp { background: rgba(255,178,35,0.07); }
.llm-row-adp:hover { background: rgba(255,178,35,0.12); }

.llm-td-rank { padding: 0.5rem 0.75rem; text-align: center; }
.llm-rank-num { font-weight: 700; font-size: 0.9rem; opacity: 0.7; }
.llm-row-adp .llm-rank-num { opacity: 1; color: #b07a00; }

.llm-td-model { padding: 0.5rem 0.75rem; min-width: 180px; }
.llm-adp-dot { color: var(--yellow); margin-right: 0.3rem; font-size: 0.8rem; }
.llm-model-name { font-weight: 600; display: block; font-size: 0.82rem; }
.llm-provider-name { font-size: 0.7rem; opacity: 0.45; }

.llm-td-net { padding: 0.5rem 0.75rem; min-width: 160px; }
.llm-net-wrap { display: flex; flex-direction: column; gap: 0.25rem; }
.llm-net-val { font-size: 0.78rem; font-weight: 700; }
.llm-pos { color: #2a7c2a; }
.llm-neg { color: #c0392b; }
.llm-bar-track {
  height: 5px;
  background: rgba(0,0,0,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.llm-bar-pos { height: 100%; background: #2a7c2a; border-radius: 3px; }
.llm-bar-neg { height: 100%; background: #c0392b; border-radius: 3px; }

.llm-td-sig { padding: 0.5rem 0.5rem; text-align: center; font-size: 0.78rem; white-space: nowrap; }
.llm-td-halluc { opacity: 0.6; }

.llm-ranking-footer {
  font-size: 0.75rem;
  opacity: 0.5;
  text-align: center;
  margin-top: 0.5rem;
}
.llm-ranking-footer a { color: var(--yellow); }

/* Responsive podio */
@media (max-width: 640px) {
  .llm-podium { height: 180px; }
  .llm-podium-score { font-size: 1.1rem; }
  .llm-podium-name { font-size: 0.72rem; }
}

/* ===========================
   MARQUEE / TICKER
=========================== */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee-wrapper::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marqueeScroll var(--marquee-speed, 30s) linear infinite;
}
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
.marquee-item:hover { opacity: 1; }

.marquee-logo {
  height: 28px;
  width: auto;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.2s;
}
.marquee-item:hover .marquee-logo { filter: grayscale(0%); }

.marquee-label {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

/* se sfondo non è --bg, aggiusta i fade */
.bg-white .marquee-wrapper::before { background: linear-gradient(to right, var(--white), transparent); }
.bg-white .marquee-wrapper::after  { background: linear-gradient(to left, var(--white), transparent); }
.bg-blue-light .marquee-wrapper::before { background: linear-gradient(to right, var(--blue-light), transparent); }
.bg-blue-light .marquee-wrapper::after  { background: linear-gradient(to left, var(--blue-light), transparent); }

/* ===========================
   BEFORE / AFTER SLIDER
=========================== */
.before-after-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.before-after {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: ew-resize;
  user-select: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  line-height: 0;
}

.ba-after {
  position: relative;
  width: 100%;
}
.ba-after img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.ba-before {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  border-right: 3px solid var(--white);
}
.ba-before img {
  position: absolute;
  top: 0; left: 0;
  width: auto;
  height: 100%;
  max-width: none;
  pointer-events: none;
}

/* etichette */
.ba-label {
  position: absolute;
  bottom: 1rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  line-height: 1.4;
}
.ba-label-before { left: 0.75rem; }
.ba-label-after  { right: 0.75rem; }

/* handle */
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  width: 3px;
}
.ba-handle-line {
  flex: 1;
  width: 3px;
  background: var(--white);
}
.ba-handle-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.ba-arrow { font-size: 0.8rem; color: var(--text); font-weight: 700; line-height: 1; }

/* ===========================
   ACCORDION
=========================== */
.accordion { display: flex; flex-direction: column; gap: 0.5rem; }

.accordion-item {
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s;
}
.accordion-item:has(.accordion-trigger[aria-expanded="true"]) {
  border-color: var(--yellow);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  line-height: 1.4;
}
.accordion-trigger:hover { color: #b07a00; }
.accordion-trigger[aria-expanded="true"] { color: #b07a00; }

.accordion-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--text);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-icon::before { width: 10px; height: 2px; }
.accordion-icon::after  { width: 2px; height: 10px; transition: transform 0.3s ease; }

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-body {
  overflow: hidden;
}
.accordion-body[hidden] { display: none; }

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
  animation: accordionIn 0.25s ease;
}
@keyframes accordionIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 0.8; transform: translateY(0); }
}

/* ===========================
   MODAL
=========================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: var(--text);
  opacity: 0.5;
}
.modal-close:hover { opacity: 1; }

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 0.3rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.form-field input {
  padding: 0.6rem 0.9rem;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  width: 100%;
}
.form-field input:focus {
  outline: none;
  border-color: var(--yellow);
}
.required { color: var(--yellow); }

.form-privacy { font-size: 0.8rem; opacity: 0.7; }
.form-privacy a { text-decoration: underline; }

.form-messages p { font-size: 0.9rem; padding: 0.75rem 1rem; border-radius: 6px; }
.form-success { background: #e8f5e9; color: #2e7d32; }
.form-error { background: #fdecea; color: #c62828; }

.form-submit { width: 100%; margin-top: 0.5rem; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.contact-form-inline { max-width: 640px; }
.contact-form-inline textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s;
}
.contact-form-inline textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

/* ===========================
   COOKIE BANNER
=========================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--text);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  animation: cookieSlideUp 0.4s ease;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 280px; }
.cookie-banner-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.3rem; }
.cookie-banner-text p { font-size: 0.82rem; opacity: 0.75; margin: 0 0 0.4rem; line-height: 1.5; }
.cookie-policy-link { font-size: 0.78rem; color: var(--yellow); text-decoration: underline; }

.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner-actions .btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}
.cookie-banner-actions .btn-secondary:hover { border-color: var(--white); color: var(--white); }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--yellow); }

.footer-built {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  opacity: 0.45;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
}
.footer-built-logo img {
  height: 18px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.footer-built-logo:hover img { opacity: 1; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .feature { grid-template-columns: 1fr; }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem; border-top: 1px solid rgba(0,0,0,0.08); }
  .main-nav.open > ul { flex-direction: column; gap: 0.5rem; }
  .dropdown { position: static; box-shadow: none; padding-left: 1rem; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .menu-toggle { display: block; }
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 { grid-template-columns: 1fr; }
  .header-container { position: relative; }
}
