@font-face {
  font-family: "TDO General";
  src: url("GeneralSans-Variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
}

:root {
  --home-blue: #16358f;
  --home-blue-dark: #0a2268;
  --home-ink: #15171c;
  --home-paper: #f4f2ec;
  --home-white: #fff;
  --home-lime: #dbff45;
  --home-yellow: #f7dc49;
  --home-mint: #b8e9d2;
  --home-orange: #ff9d68;
  --home-radius: 30px;
  --home-shadow: 0 24px 70px rgba(11,34,104,.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--home-paper); color: var(--home-ink); }
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; }

.tdo-home-page {
  background: var(--home-paper);
  color: var(--home-ink);
  font: 18px/1.55 "TDO General", Arial, sans-serif;
  overflow-x: clip;
}

.tdo-home-skip {
  background: var(--home-lime);
  color: var(--home-blue-dark);
  font: 700 14px/1 "TDO General", Arial, sans-serif;
  left: 12px;
  padding: 12px 16px;
  position: fixed;
  top: -80px;
  z-index: 100000;
}
.tdo-home-skip:focus { top: 12px; }

/* Navigazione essenziale di riserva: viene sostituita dal menu condiviso. */
.tdo-v-topbar { align-items: center; background: var(--home-blue); display: flex; justify-content: space-between; min-height: 82px; padding: 18px clamp(22px,4vw,64px); position: sticky; top: 0; z-index: 1000; }
.tdo-v-topbar img { width: 183px; }
.tdo-v-topbar nav { display: flex; gap: 24px; }
.tdo-v-topbar nav a { color: #fff; font-size: 14px; font-weight: 640; text-decoration: none; }

.tdo-home-shell { margin: 0 auto; max-width: 1360px; padding-inline: clamp(22px,4vw,64px); width: 100%; }
.tdo-home-section { padding-block: clamp(84px,9vw,138px); }
.tdo-home-eyebrow { color: var(--home-lime); font-size: 13px; font-weight: 750; letter-spacing: .13em; margin: 0 0 17px; text-transform: uppercase; }
.tdo-home-eyebrow--blue { color: var(--home-blue); }

.tdo-home-hero { background: #fff; color: var(--home-blue-dark); }
.tdo-home-hero__stage { background: #fff; isolation: isolate; min-height: clamp(600px,49vw,880px); overflow: hidden; position: relative; }
.tdo-home-hero__stage::after { background: linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.8) 48%,rgba(255,255,255,0) 100%); content: ""; height: 44%; inset: 0 0 auto; pointer-events: none; position: absolute; z-index: 1; }
.tdo-home-hero__picture { inset: auto 0 0; position: absolute; z-index: 0; }
.tdo-home-hero__picture img { height: auto; max-width: none; width: 100%; }
.tdo-home-hero__title { padding-top: clamp(38px,4vw,66px); position: relative; z-index: 2; }
.tdo-home-hero h1 { color: var(--home-blue-dark); font-size: clamp(42px,4.2vw,64px); font-weight: 640; letter-spacing: -.018em; line-height: .95; margin: 0; max-width: 790px; text-shadow: 0 2px 16px rgba(255,255,255,.95); }
.tdo-home-hero h1 span { color: var(--home-blue); }
.tdo-home-hero__body { background: var(--home-blue); color: #fff; padding-top: clamp(38px,4.5vw,64px); }
.tdo-home-hero__intro { align-items: center; display: grid; gap: 30px clamp(40px,7vw,100px); grid-template-columns: minmax(0,1fr) auto; }
.tdo-home-lead { color: rgba(255,255,255,.84); font-size: clamp(19px,1.6vw,24px); line-height: 1.45; margin: 0; max-width: 760px; }
.tdo-home-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.tdo-home-button { align-items: center; border: 2px solid transparent; border-radius: 999px; display: inline-flex; font-size: 15px; font-weight: 720; gap: 9px; justify-content: center; min-height: 54px; padding: 13px 23px; text-decoration: none; transition: opacity 180ms ease, transform 180ms ease; }
.tdo-home-button:hover { opacity: .88; transform: translateY(-2px); }
.tdo-home-button:focus-visible, .tdo-home-text-link:focus-visible, .tdo-home-page a:focus-visible { outline: 3px solid var(--home-lime); outline-offset: 4px; }
.tdo-home-button--lime { background: var(--home-lime); color: var(--home-blue-dark); }
.tdo-home-button--outline { border-color: rgba(255,255,255,.55); color: #fff; }
.tdo-home-button--light { background: #fff; color: var(--home-blue); }

.tdo-home-stats { display: grid; grid-template-columns: repeat(4,1fr); margin-top: clamp(42px,5vw,68px); padding-inline: 0; }
.tdo-home-stats div { background: var(--home-blue-dark); min-height: 132px; padding: 28px clamp(20px,3vw,42px); }
.tdo-home-stats div + div { border-left: 1px solid rgba(255,255,255,.12); }
.tdo-home-stats strong { color: var(--home-lime); display: block; font-size: clamp(26px,2.8vw,40px); line-height: 1; }
.tdo-home-stats span { color: rgba(255,255,255,.72); display: block; font-size: 14px; margin-top: 10px; }

.tdo-home-heading { margin-bottom: clamp(38px,5vw,70px); max-width: 870px; }
.tdo-home-heading h2, .tdo-home-event h2, .tdo-home-cta h2 { font-size: clamp(34px,4vw,54px); font-weight: 660; letter-spacing: -.018em; line-height: 1; margin: 0; }
.tdo-home-heading > p:last-child { color: #5d616a; font-size: clamp(18px,1.5vw,22px); margin: 22px 0 0; max-width: 760px; }
.tdo-home-heading--row { align-items: end; display: flex; justify-content: space-between; max-width: none; }
.tdo-home-text-link { color: var(--home-blue); font-size: 15px; font-weight: 720; text-decoration: none; }

.tdo-home-product-grid { display: grid; gap: 22px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.tdo-home-product { background: #fff; border-radius: var(--home-radius); display: flex; flex-direction: column; min-height: 520px; overflow: hidden; }
.tdo-home-product--featured { background: var(--home-blue); color: #fff; display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0,.78fr) minmax(420px,1.22fr); min-height: 430px; }
.tdo-home-product--mint { background: var(--home-mint); }
.tdo-home-product--orange { background: var(--home-orange); }
.tdo-home-product--yellow { background: var(--home-yellow); }
.tdo-home-product__media { aspect-ratio: 4/3; display: block; margin: 0; overflow: hidden; width: 100%; }
.tdo-home-product__media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.tdo-home-product--featured .tdo-home-product__media { aspect-ratio: auto; background: #fff; min-height: 100%; order: 2; }
.tdo-home-product--featured .tdo-home-product__media img { object-fit: contain; padding: clamp(18px,2.5vw,34px); }
.tdo-home-product--agenda .tdo-home-product__media { background: #fff; }
.tdo-home-product--agenda .tdo-home-product__media img { object-fit: contain; transform: scale(1.28); transform-origin: center 50%; }
.tdo-home-product--licei .tdo-home-product__media img { object-position: center; }
.tdo-home-product__copy { padding: clamp(28px,3.5vw,50px); }
.tdo-home-product--featured .tdo-home-product__copy { align-self: center; }
.tdo-home-card-label { color: var(--home-blue); font-size: 12px; font-weight: 760; letter-spacing: .12em; margin: 0 0 15px; text-transform: uppercase; }
.tdo-home-product--featured .tdo-home-card-label { color: var(--home-lime); }
.tdo-home-product h3 { font-size: clamp(28px,2.7vw,40px); font-weight: 650; letter-spacing: -.012em; line-height: 1.02; margin: 0; }
.tdo-home-product p:not(.tdo-home-card-label) { margin: 19px 0 0; }
.tdo-home-product__copy > a { display: inline-block; font-size: 15px; font-weight: 740; margin-top: 24px; text-decoration: none; }
.tdo-home-product--featured a { color: var(--home-lime); }

.tdo-home-event { background: var(--home-blue-dark); color: #fff; padding-block: clamp(70px,8vw,118px); }
.tdo-home-event__grid { display: grid; gap: clamp(32px,4vw,54px); grid-template-columns: minmax(0,1fr); }
.tdo-home-event__copy { align-items: end; display: grid; gap: 22px clamp(30px,5vw,74px); grid-template-columns: minmax(0,1fr) auto; }
.tdo-home-event__copy .tdo-home-eyebrow, .tdo-home-event__copy h2 { grid-column: 1; }
.tdo-home-event__copy .tdo-home-event__stand { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.tdo-home-event p:not(.tdo-home-eyebrow) { color: rgba(255,255,255,.76); font-size: 20px; margin: 22px 0 28px; }
.tdo-home-event .tdo-home-event__stand { align-items: center; border-left: 5px solid var(--home-lime); color: #fff; display: flex; flex-wrap: wrap; font-size: 18px; gap: 8px 18px; padding: 5px 0 5px 16px; }
.tdo-home-event__stand strong { font-size: 21px; }
.tdo-home-event__stand span { color: var(--home-lime); font-weight: 720; letter-spacing: .04em; text-transform: uppercase; }
.tdo-home-event__media { aspect-ratio: 2912 / 360; display: block; overflow: hidden; position: relative; text-decoration: none; width: 100%; }
.tdo-home-event__media picture, .tdo-home-event__media img { display: block; height: 100%; width: 100%; }
.tdo-home-event__media img { object-fit: cover; }
.tdo-home-event__banner-stand { align-items: center; color: var(--home-blue-dark); display: flex; flex-direction: column; font-size: clamp(15px,1.55vw,23px); inset: 12% 4.4% 12% auto; justify-content: center; line-height: 1.08; position: absolute; text-align: center; width: 29%; }
.tdo-home-event__banner-stand strong { font-size: 1.08em; }
.tdo-home-event__banner-stand > span { color: var(--home-blue); font-weight: 760; letter-spacing: .045em; margin-top: .35em; text-transform: uppercase; }

.tdo-home-fair-recap { background: #e7edf7; padding-block: clamp(72px,8vw,118px); }
.tdo-home-fair-recap__heading { align-items: end; display: flex; gap: 32px; justify-content: space-between; margin-bottom: clamp(34px,4vw,54px); }
.tdo-home-fair-recap__heading > div:first-child { max-width: 830px; }
.tdo-home-fair-recap h2 { color: var(--home-blue-dark); font-size: clamp(34px,4vw,54px); font-weight: 640; letter-spacing: -.018em; line-height: 1; margin: 0; }
.tdo-home-fair-recap__heading p:last-child { color: #50596d; font-size: clamp(17px,1.5vw,21px); margin: 20px 0 0; max-width: 760px; }
.tdo-home-carousel-controls { display: flex; flex: 0 0 auto; gap: 10px; }
.tdo-home-carousel-controls button { align-items: center; background: var(--home-blue); border: 0; border-radius: 50%; color: #fff; cursor: pointer; display: inline-flex; font: 640 22px/1 "TDO General",Arial,sans-serif; height: 50px; justify-content: center; transition: opacity 180ms ease,transform 180ms ease; width: 50px; }
.tdo-home-carousel-controls button:hover:not(:disabled) { transform: translateY(-2px); }
.tdo-home-carousel-controls button:disabled { cursor: default; opacity: .28; }
.tdo-home-carousel-controls button:focus-visible { outline: 3px solid var(--home-blue); outline-offset: 3px; }
.tdo-home-fair-carousel__track { display: grid; gap: 18px; grid-auto-columns: minmax(320px,42vw); grid-auto-flow: column; overflow-x: auto; overscroll-behavior-inline: contain; padding: 0 0 18px; scroll-snap-type: inline mandatory; scrollbar-color: var(--home-blue) rgba(22,53,143,.15); scrollbar-width: thin; }
.tdo-home-fair-carousel figure { aspect-ratio: 3/2; border-radius: 22px; margin: 0; overflow: hidden; scroll-snap-align: start; }
.tdo-home-fair-carousel img { height: 100%; object-fit: cover; transition: transform 350ms cubic-bezier(.2,.8,.2,1); width: 100%; }
.tdo-home-fair-carousel figure:hover img { transform: scale(1.02); }

.tdo-home-news-grid { display: grid; gap: 22px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.tdo-home-news-card { background: #fff; border-radius: var(--home-radius); display: flex; flex-direction: column; min-height: 510px; overflow: hidden; }
.tdo-home-news-card__media { display: block; overflow: hidden; }
.tdo-home-news-card__media img { aspect-ratio: 16/10; height: auto; object-fit: cover; transition: transform 350ms cubic-bezier(.2,.8,.2,1); width: 100%; }
.tdo-home-news-card__media:hover img { transform: scale(1.025); }
.tdo-home-news-card__copy { padding: clamp(26px,3vw,40px); }
.tdo-home-news-card time { color: var(--home-blue); font-size: 13px; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.tdo-home-news-card h3 { font-size: clamp(24px,2.2vw,32px); line-height: 1.07; margin: 22px 0 0; }
.tdo-home-news-card h3 a { text-decoration: none; }
.tdo-home-news-card__copy > p:last-child { color: #5d616a; margin: 22px 0 0; }

.tdo-home-utilities { background: #ebe9e2; }
.tdo-home-utility-grid { display: grid; gap: 22px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.tdo-home-utility { background: #fff; border-radius: var(--home-radius); display: flex; flex-direction: column; min-height: 490px; overflow: hidden; text-decoration: none; transition: transform 200ms ease; }
.tdo-home-utility:hover { transform: translateY(-5px); }
.tdo-home-utility > img { aspect-ratio: 1; display: block; object-fit: cover; transition: transform 350ms cubic-bezier(.2,.8,.2,1); width: 100%; }
.tdo-home-utility:hover > img { transform: scale(1.02); }
.tdo-home-utility__copy { padding: clamp(26px,3vw,38px); }
.tdo-home-utility__copy > span { color: var(--home-blue); font-size: 13px; font-weight: 760; }
.tdo-home-utility h3 { font-size: clamp(24px,2.1vw,31px); line-height: 1.08; margin: 28px 0 0; }
.tdo-home-utility p { color: #5d616a; margin: 20px 0 0; }

.tdo-home-cta { background: var(--home-blue); color: #fff; padding-block: clamp(70px,8vw,112px); }
.tdo-home-cta__inner { align-items: center; display: flex; gap: 40px; justify-content: space-between; }
.tdo-home-cta p:not(.tdo-home-eyebrow) { color: rgba(255,255,255,.76); margin: 18px 0 0; }
.tdo-home-cta .tdo-home-button { flex: 0 0 auto; }

.tdo-home-footer { background: #081842; color: rgba(255,255,255,.72); padding-block: 48px; }
.tdo-home-footer__inner { align-items: center; display: flex; gap: 28px; justify-content: space-between; }
.tdo-home-footer img { width: 170px; }
.tdo-home-footer p { font-size: 14px; margin: 0; }
.tdo-home-footer a { color: var(--home-lime); }

.tdo-home-js .tdo-home-reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.8,.2,1); }
.tdo-home-js .tdo-home-reveal.is-visible { opacity: 1; transform: none; }
.tdo-home-js .tdo-home-reveal[data-delay="1"] { transition-delay: 90ms; }
.tdo-home-js .tdo-home-reveal[data-delay="2"] { transition-delay: 180ms; }

@media (max-width: 1000px) {
  .tdo-home-event__copy { align-items: start; grid-template-columns: 1fr; }
  .tdo-home-event__copy .tdo-home-eyebrow, .tdo-home-event__copy h2, .tdo-home-event__copy .tdo-home-event__stand { grid-column: 1; grid-row: auto; }
  .tdo-home-hero__intro { align-items: start; grid-template-columns: 1fr; }
  .tdo-home-product-grid, .tdo-home-news-grid, .tdo-home-utility-grid { grid-template-columns: 1fr 1fr; }
  .tdo-home-product--featured { grid-template-columns: 1fr; }
  .tdo-home-product--featured .tdo-home-product__media { aspect-ratio: 4/3; min-height: 0; order: 0; }
  .tdo-home-product--featured .tdo-home-product__copy { order: 1; }
  .tdo-home-product--yellow { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .tdo-home-hero__stage { display: flex; flex-direction: column; min-height: 0; }
  .tdo-home-hero__stage::after { display: none; }
  .tdo-home-hero__title { order: 1; padding-block: 42px 34px; }
  .tdo-home-hero__picture { height: clamp(260px,52vw,430px); order: 2; overflow: hidden; position: relative; }
  .tdo-home-hero__picture img { height: 100%; object-fit: cover; object-position: center bottom; width: 100%; }
}

@media (max-width: 700px) {
  .tdo-v-topbar nav { display: none; }
  .tdo-home-hero h1 { font-size: clamp(32px,9.2vw,42px); line-height: .98; }
  .tdo-home-hero__title { padding-block: 34px 28px; }
  .tdo-home-hero__picture { height: clamp(230px,66vw,310px); }
  .tdo-home-hero__body { padding-top: 34px; }
  .tdo-home-stats { grid-template-columns: 1fr 1fr; }
  .tdo-home-stats div { min-height: 112px; }
  .tdo-home-stats div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .tdo-home-stats div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.12); }
  .tdo-home-product-grid, .tdo-home-news-grid, .tdo-home-utility-grid { grid-template-columns: 1fr; }
  .tdo-home-product--yellow { grid-column: auto; }
  .tdo-home-product { min-height: 0; }
  .tdo-home-event__media { aspect-ratio: 6 / 5; }
  .tdo-home-event__banner-stand { font-size: clamp(20px,6vw,27px); inset: 47% auto 8% 4%; width: 78%; }
  .tdo-home-fair-recap__heading { align-items: flex-start; flex-direction: column; }
  .tdo-home-fair-carousel__track { grid-auto-columns: 82vw; }
  .tdo-home-heading--row, .tdo-home-cta__inner, .tdo-home-footer__inner { align-items: flex-start; flex-direction: column; }
  .tdo-home-heading--row { gap: 22px; }
  .tdo-home-cta__inner { gap: 30px; }
  .tdo-home-cta .tdo-home-button { flex: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .tdo-home-js .tdo-home-reveal { opacity: 1; transform: none; }
}
