/* =====================================================
   ITALYURE — main.css
   Token, base, header, newsbar, drawer, footer.
   Le sezioni di pagina stanno in fondo, raggruppate per template.
===================================================== */

/* ---------- Font (self-hosted) ---------- */

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Token ---------- */

:root {
  --iy-navy: #07182c;
  --iy-navy-2: #08243b;
  --iy-blue: #102b4d;
  --iy-ocean: #003459;
  --iy-gold: #bd9c63;
  --iy-sky: #5dc5f2;
  --iy-text: #172236;
  --iy-text-soft: #4f5866;
  --iy-muted: #6f7783;
  --iy-bg: #f7f7f6;
  --iy-border: #e4e6e8;
  --iy-white: #fff;

  --iy-font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --iy-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --iy-container: 1240px;
  --iy-gutter: clamp(16px, 4vw, 32px);
  --iy-section-y: clamp(64px, 9vw, 120px);

  --iy-header-h: 72px;
  --iy-newsbar-h: 46px;
  --iy-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--iy-header-h) + 16px);
}

body {
  margin: 0;
  color: var(--iy-text);
  background: var(--iy-white);
  font-family: var(--iy-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--iy-font-display);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

address { font-style: normal; }

:focus-visible { outline: 2px solid var(--iy-gold); outline-offset: 3px; }

.iy-container {
  width: min(var(--iy-container), 100% - 2 * var(--iy-gutter));
  margin-inline: auto;
}

.iy-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.iy-skip {
  position: absolute; left: 16px; top: -100px; z-index: 10000;
  padding: 10px 16px;
  color: var(--iy-navy); background: var(--iy-white);
}
.iy-skip:focus { top: 16px; }

.iy-icon { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Bottoni ---------- */

.iy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--iy-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--iy-ease), color .25s var(--iy-ease), border-color .25s var(--iy-ease), transform .15s var(--iy-ease);
}
.iy-btn:active { transform: scale(.97); }

.iy-btn--light { color: var(--iy-navy); background: var(--iy-white); }
.iy-btn--light:hover { color: var(--iy-white); background: var(--iy-gold); }

.iy-btn--primary { color: var(--iy-white); background: var(--iy-navy); }
.iy-btn--primary:hover { background: var(--iy-gold); }

.iy-btn--accent {
  min-height: 50px;
  padding: 12px 30px;
  color: var(--iy-navy);
  background: var(--iy-sky);
  border: 3px solid var(--iy-sky);
  font-family: var(--iy-font-body);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0;
}
.iy-btn--accent:hover { color: var(--iy-white); background: var(--iy-ocean); border-color: var(--iy-ocean); }

.iy-btn--ghost { color: var(--iy-white); border-color: rgba(255, 255, 255, .6); }
.iy-btn--ghost:hover { color: var(--iy-navy); background: var(--iy-white); border-color: var(--iy-white); }

/* ---------- Newsbar ---------- */

.iy-newsbar {
  position: relative;
  z-index: 60;
  color: var(--iy-white);
  background: var(--iy-navy-2);
}

.iy-newsbar__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(1440px, 100% - 64px);
  height: var(--iy-newsbar-h);
  margin: 0 auto;
}

.iy-newsbar__label {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, .12);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.iy-newsbar__label span { width: 6px; height: 6px; border-radius: 50%; background: var(--iy-gold); }

.iy-newsbar__items { position: relative; min-width: 0; height: 100%; overflow: hidden; }

.iy-newsbar__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  color: var(--iy-white);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.iy-newsbar__item.is-active { opacity: 1; pointer-events: auto; transform: none; }

.iy-newsbar__title {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iy-newsbar__more {
  flex: none;
  color: var(--iy-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.iy-newsbar__arrows { display: flex; height: 100%; border-left: 1px solid rgba(255, 255, 255, .12); }
.iy-newsbar__arrows button {
  width: 42px;
  height: 100%;
  padding: 0;
  color: var(--iy-white);
  background: transparent;
  border: 0;
  font-size: 23px;
  cursor: pointer;
}
.iy-newsbar__arrows button:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Header ---------- */

.iy-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--iy-white);
  background: var(--iy-navy);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .3s var(--iy-ease), box-shadow .3s var(--iy-ease);
}

/* Sopra l'hero l'header è trasparente; torna pieno appena si scorre. */
.has-hero .iy-header {
  margin-bottom: calc(-1 * var(--iy-header-h));
  background: rgba(7, 24, 44, .18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.has-hero .iy-header.is-scrolled {
  background: rgba(7, 24, 44, .94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

.iy-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1440px, 100% - 2 * var(--iy-gutter));
  height: calc(var(--iy-header-h) - 1px); /* + bordo inferiore = 72px, come sul sito attuale */
}

.iy-header__logo img { width: 128px; }

.iy-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.iy-header__cta { min-height: 40px; padding: 8px 26px; font-size: 15px; }

/* Nav desktop */

.iy-nav__list {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.iy-nav__list > li { position: relative; }

.iy-nav__list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: 12.8px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.iy-nav__list > li > a {
  position: relative;
  height: var(--iy-header-h);
}
.iy-nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--iy-ease);
}
.iy-nav__list > li > a:hover::after,
.iy-nav__list > .current-menu-item > a::after,
.iy-nav__list > .current-menu-ancestor > a::after { transform: scaleX(1); }

.iy-nav__list > .menu-item-has-children > a::before {
  content: "";
  order: 2;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.iy-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 230px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--iy-navy);
  border-top: 2px solid var(--iy-gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
.iy-nav__list li:hover > .sub-menu,
.iy-nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.iy-nav__list .sub-menu a {
  display: block;
  padding: 9px 20px;
  color: rgba(255, 255, 255, .78);
  font-size: 12.5px;
}
.iy-nav__list .sub-menu a:hover,
.iy-nav__list .sub-menu .current-menu-item > a { color: var(--iy-white); background: rgba(255, 255, 255, .06); }

/* Selettore lingua */

.iy-lang {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.iy-lang a {
  display: block;
  padding: 4px 6px;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
}
.iy-lang a:hover,
.iy-lang a[aria-current] { color: var(--iy-white); }
.iy-lang a[aria-current] { box-shadow: inset 0 -1px 0 var(--iy-gold); }

/* Burger */

.iy-burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.iy-burger span[aria-hidden],
.iy-burger span[aria-hidden]::before,
.iy-burger span[aria-hidden]::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  content: "";
}
.iy-burger span[aria-hidden] { top: 21px; }
.iy-burger span[aria-hidden]::before { left: 0; top: -7px; }
.iy-burger span[aria-hidden]::after { left: 0; top: 7px; }

/* ---------- Drawer mobile (dialog nativo) ---------- */

.iy-drawer {
  width: min(420px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  color: var(--iy-white);
  background: var(--iy-navy);
  border: 0;
  overflow: hidden;
}
.iy-drawer[open] { display: flex; flex-direction: column; animation: iy-drawer-in .35s var(--iy-ease); }
.iy-drawer::backdrop { background: rgba(3, 12, 24, .55); }

@keyframes iy-drawer-in { from { transform: translateX(24px); opacity: 0; } }

.iy-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--iy-header-h);
  padding: 0 var(--iy-gutter);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.iy-drawer__logo { width: 118px; }
.iy-drawer__close {
  width: 44px; height: 44px;
  margin-right: -10px;
  color: inherit;
  background: none;
  border: 0;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.iy-drawer__nav { flex: 1; overflow-y: auto; padding: 16px var(--iy-gutter); }
.iy-drawer__list,
.iy-drawer__list .sub-menu { margin: 0; padding: 0; list-style: none; }
.iy-drawer__list > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.iy-drawer__list a {
  display: block;
  padding: 14px 0;
  color: var(--iy-white);
  font-family: var(--iy-font-display);
  font-size: 22px;
  text-decoration: none;
}
.iy-drawer__list .sub-menu { padding: 0 0 12px 14px; }
.iy-drawer__list .sub-menu a {
  padding: 6px 0;
  color: rgba(255, 255, 255, .7);
  font-family: var(--iy-font-body);
  font-size: 15px;
}
.iy-drawer__list .current-menu-item > a { color: var(--iy-gold); }

.iy-drawer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--iy-gutter) calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.iy-social { display: flex; gap: 6px; width: 100%; margin: 0; padding: 0; list-style: none; }
.iy-social a { display: grid; place-items: center; width: 40px; height: 40px; color: rgba(255, 255, 255, .75); }
.iy-social a:hover { color: var(--iy-gold); }

/* ---------- Footer ---------- */

.iy-footer {
  color: rgba(255, 255, 255, .7);
  background:
    linear-gradient(rgba(0, 52, 89, .5), var(--iy-ocean)),
    url("../img/footer-bg.webp") center / cover no-repeat var(--iy-ocean);
  font-size: 15px;
}

.iy-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding: clamp(56px, 8vw, 96px) 0 48px;
}

.iy-footer__brand img { width: 170px; margin-bottom: 22px; }
.iy-footer__brand address { line-height: 1.7; color: var(--iy-white); }

.iy-footer__title {
  margin-bottom: 16px;
  color: var(--iy-white);
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.iy-footer__list { margin: 0; padding: 0; list-style: none; }

.iy-footer a {
  color: rgba(255, 255, 255, .62);
  letter-spacing: .04em;
  line-height: 1.9;
  text-decoration: none;
  transition: color .2s ease;
}
.iy-footer a:hover { color: var(--iy-white); }
.iy-footer__brand a { color: var(--iy-white); }

.iy-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
}
.iy-footer__legal p { margin: 0; }

/* ---------- Tipografia di sezione ---------- */

.iy-eyebrow {
  margin: 0 0 .4em;
  color: var(--iy-sky);
  font-family: var(--iy-font-body);
  font-size: 1.2rem;
  line-height: 1.3;
}

.iy-h2 {
  color: var(--iy-text);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
}

/* Sfondo a curve di livello usato da più sezioni (--iy-texture impostata dal template). */
.iy-textured {
  background: var(--iy-texture) left bottom / cover no-repeat var(--iy-white);
}

/* ---------- Pagina generica ---------- */

.iy-page { padding: var(--iy-section-y) 0; }
.iy-page__title { margin-bottom: 32px; color: var(--iy-navy); font-size: clamp(36px, 5vw, 60px); text-transform: uppercase; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .iy-nav,
  .iy-header__lang,
  .iy-header__cta { display: none; }

  .iy-burger { display: block; }
  .iy-header__inner { grid-template-columns: 1fr auto; }

  .iy-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .iy-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --iy-header-h: 64px; }

  .iy-newsbar__inner { grid-template-columns: auto minmax(0, 1fr); width: 100%; }
  .iy-newsbar__label { padding: 0 13px; font-size: 11px; }
  .iy-newsbar__item { padding: 0 14px; }
  .iy-newsbar__title { font-size: 12px; }
  .iy-newsbar__more,
  .iy-newsbar__arrows { display: none; }

  .iy-header__logo img { width: 112px; }

  .iy-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .iy-footer__legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================
   HOME
===================================================== */

.iy-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 90vh; /* come sul sito attuale */
  overflow: hidden;
  color: var(--iy-white);
  background: var(--iy-navy);
  text-align: center;
}

.iy-hero__media,
.iy-hero__media::after {
  position: absolute;
  inset: 0;
}
.iy-hero__media::after {
  content: "";
  background: linear-gradient(180deg, rgba(3, 12, 24, .45) 0%, rgba(3, 12, 24, .2) 40%, rgba(3, 12, 24, .45) 100%);
}

.iy-hero__poster,
.iy-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iy-hero__content { position: relative; z-index: 1; }

.iy-hero__title {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}

.iy-hero__subtitle {
  margin-top: 0;
  font-size: clamp(16px, 2.2vw, 32px);
  line-height: 1;
  font-weight: 400;
  opacity: .95;
}

/* Intro: immagine + testo */

.iy-intro {
  display: flex;
  align-items: center;
  min-height: 90vh;
  padding: var(--iy-section-y) 0;
}

.iy-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5.5vw, 80px);
  width: min(1080px, 100% - 2 * var(--iy-gutter));
}

.iy-intro__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.iy-intro__body .iy-h2 { margin-bottom: 28px; }

.iy-intro__text {
  margin-bottom: 32px;
  color: rgba(0, 0, 0, .5);
  font-size: 1rem;
  line-height: 1.8;
}

/* Storia */

.iy-story {
  display: flex;
  align-items: center;
  min-height: 90vh;
  padding: var(--iy-section-y) 0;
  color: var(--iy-white);
  background:
    linear-gradient(rgba(0, 0, 0, .48), rgba(0, 0, 0, .55)),
    var(--iy-story-bg) center / cover no-repeat #1b1b1b;
}

.iy-story__inner {
  width: min(540px, 100% - 2 * var(--iy-gutter));
  margin-left: max(var(--iy-gutter), 39%);
}

.iy-story__title {
  margin-bottom: 40px;
  font-size: 36px;
  text-transform: uppercase;
}

.iy-story__item + .iy-story__item { margin-top: 36px; }

.iy-story__item h3 {
  margin-bottom: 10px;
  font-family: var(--iy-font-body);
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}

.iy-story__item p {
  margin: 0;
  font-family: var(--iy-font-body);
  font-size: 16px;
  line-height: 1.7;
}

/* News e eventi: carosello a scroll nativo */

.iy-news {
  display: flex;
  align-items: center;
  min-height: 90vh;
  padding: var(--iy-section-y) 0;
  overflow: hidden;
}

.iy-news > .iy-container { min-width: 0; }

.iy-news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.iy-news__title { text-transform: uppercase; }

.iy-carousel__nav { display: flex; gap: 8px; }
.iy-carousel__nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--iy-navy);
  background: var(--iy-white);
  border: 1px solid var(--iy-border);
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.iy-carousel__nav button:hover { color: var(--iy-white); background: var(--iy-navy); border-color: var(--iy-navy); }
.iy-carousel__nav button:disabled { opacity: .35; pointer-events: none; }

.iy-carousel {
  display: grid;
  grid-auto-columns: min(340px, 80vw);
  grid-auto-flow: column;
  gap: 24px;
  /* Come sul sito attuale: le card escono fino al bordo destro dello schermo. */
  margin: 0 calc((100% - 100vw) / 2) 0 calc(-1 * var(--iy-gutter));
  padding: 0 var(--iy-gutter) 12px;
  list-style: none;
  overflow-x: auto;
  scroll-padding-inline: var(--iy-gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.iy-carousel::-webkit-scrollbar { display: none; }

.iy-card {
  position: relative; /* contiene gli .iy-sr assoluti, che altrimenti allargano la pagina */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  scroll-snap-align: start;
}

.iy-card__media {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--iy-bg);
}
.iy-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .6s var(--iy-ease);
}
.iy-card:hover .iy-card__media img { transform: scale(1.04); }

.iy-card__title {
  margin-bottom: 14px;
  font-family: var(--iy-font-body);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
}
.iy-card__title a { color: var(--iy-text); text-decoration: none; }
.iy-card__title a:hover { color: var(--iy-ocean); }

.iy-card__more {
  margin-top: auto;
  padding: 4px 12px;
  color: var(--iy-text);
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: var(--iy-font-body);
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.iy-card__more:hover { color: var(--iy-white); background: var(--iy-ocean); border-color: var(--iy-ocean); }


/* =====================================================
   MODELLO
===================================================== */

.iy-btn--square { min-width: 230px; font-size: 15px; }
.iy-btn--light.iy-btn--square { color: var(--iy-text); }

/* Hero (misure del sito attuale: 100vh, logo 331px, dati 3×320px in riga 1080px, pulsanti 237×41) */

.iy-mhero {
  position: relative;
  display: grid;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: var(--iy-white);
  background: var(--iy-navy);
}

.iy-mhero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--iy-mhero-pos, center);
}
.iy-mhero--gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 69, 135, .66) 0%, rgba(41, 196, 169, 0) 66%);
}

.iy-mhero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, 100% - 2 * var(--iy-gutter));
  padding: calc(var(--iy-mhero-pad, 70px) + 27px) 0 71px;
  text-align: center;
}

.iy-mhero__title { margin: 0; }
.iy-mhero__logo { width: 331px; max-width: 70vw; margin: 0 auto; }
.iy-mhero__name { font-size: clamp(40px, 6vw, 72px); letter-spacing: .2em; text-transform: uppercase; }

.iy-mhero__stats {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: auto 0 26px;
  line-height: 1.5;
}
.iy-mhero__stats div { display: flex; flex: 0 1 320px; flex-direction: column; align-items: center; }
.iy-mhero__prefix,
.iy-mhero__stats dt { font-size: 16px; font-weight: 500; }
.iy-mhero__stats dd { order: 0; margin: 0; font-size: 35.2px; font-weight: 700; line-height: 1.5; }
.iy-mhero__stats dt { order: 1; }

.iy-mhero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 33px; }
.iy-mhero__actions .iy-btn--square { min-width: 237px; min-height: 41px; padding: 4.8px 50px; font-size: 16px; }

/* Menu interno */

.iy-subnav {
  position: sticky;
  top: var(--iy-header-h);
  z-index: 40;
  background: var(--iy-texture, none) center / cover no-repeat var(--iy-ocean);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.iy-subnav ul {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 0;
  padding: 0 var(--iy-gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.iy-subnav a {
  display: block;
  padding: 35px 0; /* barra alta 90px come sul sito attuale */
  color: var(--iy-white);
  font-size: 12.8px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 -1px 0 transparent;
  transition: box-shadow .2s ease;
}
.iy-subnav a:hover { box-shadow: inset 0 -1px 0 var(--iy-white); }

/* Sezioni testo + immagini */

.iy-msection { padding: clamp(56px, 8vw, 100px) 0; }
.iy-msection + .iy-msection { padding-top: 0; }

.iy-msection__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.iy-msection--text .iy-msection__grid,
.iy-msection__grid--full { grid-template-columns: minmax(0, 860px); justify-content: center; }

.iy-msection__title {
  margin-bottom: 12px;
  color: var(--iy-text);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.1;
}
.iy-msection__title--upper { font-size: clamp(30px, 3vw, 40px); text-transform: uppercase; }

.iy-msection__subtitle {
  margin: 0 0 16px;
  color: var(--iy-text);
  font-family: var(--iy-font-display);
  font-size: 18px;
  text-transform: uppercase;
}

.iy-msection__text { color: var(--iy-text-soft); font-size: 15px; line-height: 1.7; }

.iy-msection__media { display: grid; gap: 16px; }
.iy-msection__media > img { width: 100%; }

.iy-msection .iy-slider { margin-top: 48px; }

/* Versioni (pagine famiglia) */

.iy-variants { padding: 0 0 clamp(56px, 8vw, 100px); }
.iy-variants__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-block: 0;
  padding: 0;
  list-style: none;
}
.iy-variant a {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--iy-white);
  background: var(--iy-navy);
  text-decoration: none;
}
.iy-variant__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--iy-ease);
}
.iy-variant a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(3, 12, 24, .7));
}
.iy-variant a:hover .iy-variant__img { transform: scale(1.05); }
.iy-variant__body { position: relative; z-index: 1; align-self: end; padding: 28px; }
.iy-variant__title { font-size: 34px; }
.iy-variant__subtitle { display: block; margin-top: 6px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* Schede foto */

.iy-mtabs { padding-bottom: clamp(56px, 8vw, 100px); }
.iy-mtabs__bar { margin-bottom: clamp(40px, 6vw, 72px); border-top: 1px solid var(--iy-border); }
.iy-mtabs__bar .iy-container { display: flex; gap: 8px; }
.iy-mtabs__bar button {
  padding: 16px 12px;
  color: var(--iy-text);
  background: none;
  border: 0;
  box-shadow: inset 0 -1px 0 transparent;
  font: 500 13px/1 var(--iy-font-body);
  text-transform: uppercase;
  cursor: pointer;
}
.iy-mtabs__bar button[aria-selected="true"] { box-shadow: inset 0 -1px 0 var(--iy-text); }

/* Slider + lightbox */

.iy-slider { position: relative; }
.iy-slider__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.iy-slider__track::-webkit-scrollbar { display: none; }
.iy-slider__track li { flex: 0 0 100%; scroll-snap-align: center; }
.iy-slider__track a { display: block; cursor: zoom-in; }
.iy-slider__track img { width: 100%; height: auto; }

.iy-slider__btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--iy-text);
  background: rgba(255, 255, 255, .85);
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s ease;
}
.iy-slider__btn:hover { background: var(--iy-white); }
.iy-slider__btn--prev { left: 12px; }
.iy-slider__btn--next { right: 12px; }

.iy-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  background: rgba(3, 8, 16, .94);
  border: 0;
}
.iy-lightbox[open] { display: grid; place-items: center; }
.iy-lightbox img { max-width: calc(100vw - 120px); max-height: calc(100dvh - 80px); object-fit: contain; }
.iy-lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  color: var(--iy-white);
  background: none;
  border: 0;
  font-size: 34px;
  cursor: pointer;
}
.iy-lightbox__close { top: 16px; right: 16px; }
.iy-lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.iy-lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Specifiche */

.iy-specs { padding: clamp(56px, 8vw, 100px) 0; }
.iy-specs__inner { width: min(1080px, 100% - 2 * var(--iy-gutter)); }
.iy-specs__title { margin-bottom: 32px; color: var(--iy-text); font-size: clamp(26px, 2.4vw, 32px); text-align: center; text-transform: uppercase; }
.iy-specs__title--layout { margin-top: clamp(56px, 7vw, 90px); }

.iy-specs__table { width: 100%; margin-bottom: 32px; border-collapse: collapse; font-size: 14.4px; }
.iy-specs__table caption { padding: 10px 24px; color: var(--iy-text); font-weight: 700; text-align: left; text-transform: uppercase; }
.iy-specs__table th,
.iy-specs__table td { width: 50%; padding: 9px 24px; color: var(--iy-text-soft); font-weight: 500; text-align: left; border-bottom: 1px solid var(--iy-border); }

@media (max-width: 767px) {
  .iy-intro,
  .iy-news { min-height: 0; }
  .iy-intro__grid { grid-template-columns: 1fr; }
  .iy-story__inner { margin-left: auto; }
  .iy-carousel__nav { display: none; }
}

/* =====================================================
   PAGINE INTERNE: intestazione, gamma, about, contatti
===================================================== */

.iy-pagehead {
  display: grid;
  align-items: center;
  min-height: 360px;
  padding: calc(var(--iy-header-h) * .5 + 40px) 0 56px;
  color: var(--iy-white);
  background: var(--iy-texture, none) right bottom / cover no-repeat var(--iy-ocean);
  text-align: center;
}
.iy-pagehead--intro { min-height: 480px; }
.iy-pagehead__title { font-size: clamp(40px, 4.5vw, 64px); text-transform: uppercase; }
.iy-pagehead__intro { max-width: 1060px; margin: 28px auto 0; font-size: 15px; line-height: 1.75; text-align: left; opacity: .92; }

/* Gamma */

.iy-range { position: relative; }
.iy-range__link {
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 900px);
  color: var(--iy-white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .45)), var(--iy-range-bg) center / cover no-repeat var(--iy-navy);
  text-decoration: none;
}
.iy-range__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 544px) 64px;
  align-items: center;
  gap: 40px;
  padding-bottom: clamp(48px, 8vh, 90px);
}
.iy-range__name { font-family: var(--iy-font-display); font-size: 40px; letter-spacing: .25em; text-transform: uppercase; }
.iy-range__logo { width: min(331px, 100%); }
.iy-range__text { font-size: 16px; line-height: 1.5; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.iy-range__arrow {
  position: relative;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  transition: background-color .3s var(--iy-ease), transform .3s var(--iy-ease);
}
.iy-range__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translate(-65%, -50%) rotate(45deg);
}
.iy-range__link:hover .iy-range__arrow { background: rgba(255, 255, 255, .15); transform: translateX(4px); }

/* About */

.iy-band {
  height: 450px;
  background: var(--iy-band-bg) center / cover no-repeat fixed var(--iy-navy);
}

.iy-person { display: flex; align-items: center; min-height: min(100svh, 900px); padding: clamp(56px, 8vw, 100px) 0; }
.iy-person--dark { color: var(--iy-white); background: var(--iy-ocean); }
.iy-person__grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  width: min(1180px, 100% - 2 * var(--iy-gutter));
}
.iy-person--reverse .iy-person__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.iy-person--reverse .iy-person__media { order: 2; }
.iy-person__media { margin: 0; }
.iy-person__media img { width: 100%; }
.iy-person__media figcaption { margin-top: 12px; color: var(--iy-muted); font-size: 14px; font-style: italic; }
.iy-person--dark figcaption { color: rgba(255, 255, 255, .55); }
.iy-person__title { margin-bottom: 18px; font-size: clamp(28px, 2.6vw, 36px); }
.iy-person__text { color: var(--iy-text-soft); font-size: 15px; line-height: 1.75; }
.iy-person--dark .iy-person__text { color: rgba(255, 255, 255, .9); }

.iy-timeline { padding: clamp(64px, 9vw, 120px) 0; }
.iy-timeline__list { width: min(1080px, 100% - 2 * var(--iy-gutter)); margin-block: 0; padding: 0; list-style: none; }
.iy-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 48px;
}
.iy-timeline__item::before,
.iy-timeline__item::after { content: ""; position: absolute; left: 228px; }
.iy-timeline__item::before { top: 6px; bottom: 0; width: 2px; background: var(--iy-sky); }
.iy-timeline__item::after { top: 2px; width: 14px; height: 14px; margin-left: -6px; background: var(--iy-sky); border-radius: 50%; }
.iy-timeline__item:last-child::before { display: none; }
.iy-timeline__label { color: var(--iy-text); font-size: 20px; line-height: 1.1; text-align: right; text-transform: uppercase; }
.iy-timeline__text { color: var(--iy-text-soft); font-size: 14px; line-height: 1.7; }

/* Contatti */

.iy-contact { padding: clamp(56px, 8vw, 100px) 0 clamp(72px, 10vw, 140px); }
.iy-contact__inner { width: min(860px, 100% - 2 * var(--iy-gutter)); }
.iy-contact .iy-h2 { margin-bottom: 32px; }
.iy-notice { padding: 16px 20px; color: #6b4e16; background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 6px; }

/* Articolo */

.iy-post__head { padding-bottom: 64px; }
.iy-post__date { display: block; margin-top: 16px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.iy-post__body { width: min(860px, 100% - 2 * var(--iy-gutter)); margin: 0 auto; overflow-wrap: anywhere; padding: clamp(48px, 7vw, 90px) 0; color: var(--iy-text-soft); font-size: 16px; line-height: 1.8; }
.iy-post__hero { margin: 0 0 40px; }
.iy-post__hero img { width: 100%; }
.iy-post__body h2,
.iy-post__body h3,
.iy-post__body h4 { margin: 1.4em 0 .6em; color: var(--iy-text); font-family: var(--iy-font-display); line-height: 1.25; }
.iy-post__body h2 { font-size: 28px; }
.iy-post__body h3 { font-size: 22px; }
.iy-post__body h4 { font-size: 19px; }
.iy-post__body a:not(.iy-btn) { color: var(--iy-ocean); }
.iy-post__body img { height: auto; margin: 24px 0; }
.iy-post__body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.iy-post__body .wp-video,
.iy-post__body video { width: 100% !important; height: auto; }
.iy-post__back { display: inline-block; margin-top: 40px; }

@media (max-width: 767px) {
  .iy-mhero__stats { gap: 12px; }
  .iy-mhero__actions .iy-btn { width: 100%; }
  .iy-msection__grid { grid-template-columns: 1fr; }
  .iy-msection__media { order: -1; }
  .iy-specs__table th,
  .iy-specs__table td { padding-inline: 8px; }
  .iy-lightbox img { max-width: 100vw; }
}

@media (max-width: 900px) {
  .iy-range__inner { grid-template-columns: 1fr; gap: 20px; }
  .iy-range__arrow { display: none; }
  .iy-person__grid,
  .iy-person--reverse .iy-person__grid { grid-template-columns: 1fr; }
  .iy-person--reverse .iy-person__media { order: 0; }
  .iy-band { background-attachment: scroll; height: 280px; }
  .iy-timeline__item { grid-template-columns: 1fr; gap: 10px; padding-left: 32px; }
  .iy-timeline__item::before,
  .iy-timeline__item::after { left: 6px; }
  .iy-timeline__label { text-align: left; }
}

/* Barra di amministrazione WordPress (solo utenti loggati): header e menu interno sotto di essa. */
.admin-bar .iy-header { top: var(--wp-admin--admin-bar--height, 32px); }
.admin-bar .iy-subnav { top: calc(var(--iy-header-h) + var(--wp-admin--admin-bar--height, 32px)); }

/* Blocco dopo le specifiche: testo, video, galleria */
.iy-specs__extra { margin-top: clamp(40px, 6vw, 72px); }
.iy-specs__subtitle,
.iy-specs__text { max-width: 860px; margin-inline: auto; text-align: center; }
.iy-specs__text { margin-bottom: 32px; }
.iy-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 32px; }
.iy-video { overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.iy-video iframe,
.iy-video video { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* Galleria a striscia: più foto affiancate (come i caroselli multipli del sito attuale) */
.iy-slider--strip .iy-slider__track { gap: 12px; }
.iy-slider--strip .iy-slider__track li { flex: 0 0 calc((100% - 48px) / 5); scroll-snap-align: start; }
.iy-slider--strip .iy-slider__track img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .iy-slider--strip .iy-slider__track li { flex-basis: calc((100% - 12px) / 2); } }

/* Logo scuro mostrato in bianco (come il filtro "inverti" di Divi) */
.iy-invert { filter: invert(1); }

/* Misure del sito attuale per intestazioni, About, Contatti, Press */
.iy-pagehead--large { display: block; min-height: 364px; padding: 157px 0 117px; }
.iy-pagehead--large .iy-pagehead__title { font-size: 80px; line-height: 1.125; }
.iy-pagehead--intro { display: block; min-height: 482px; padding: 182px 0 81px; }
.iy-pagehead--intro .iy-pagehead__title { font-size: 64px; line-height: 74px; }
.iy-pagehead--intro .iy-pagehead__intro { max-width: none; margin-top: 30px; color: rgba(255, 255, 255, .65); font-size: 18px; line-height: 1.6; opacity: 1; }

/* Fascia About: stessa inquadratura del parallasse del sito attuale (parte alta dell'immagine) */
.iy-band { background: var(--iy-band-bg) center 37.9% / 100% auto no-repeat var(--iy-navy); } /* stessa inquadratura del sito attuale (misurata: larghezza piena, -180px) */

.iy-contact { padding: 115px 0 113px; }
.iy-contact--image .iy-contact__inner { display: grid; grid-template-columns: 510px 510px; justify-content: space-between; width: min(1080px, 100% - 2 * var(--iy-gutter)); }
.iy-contact__media { min-height: 582px; background: var(--iy-contact-img) center / cover no-repeat; }
.iy-contact .iy-eyebrow { font-size: 19.2px; margin-bottom: 0; }
.iy-contact .iy-h2 { font-size: 48px; }

@media (max-width: 900px) {
  .iy-pagehead--large .iy-pagehead__title { font-size: clamp(40px, 9vw, 80px); }
  .iy-pagehead--large,
  .iy-pagehead--intro { padding-top: 110px; padding-bottom: 60px; min-height: 0; }
  .iy-band { background-size: cover; }
  .iy-contact--image .iy-contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .iy-contact__media { min-height: 320px; }
}

.iy-pagehead--large { padding-top: 150px; padding-bottom: 124px; }
.iy-pagehead--intro .iy-pagehead__inner { width: min(1080px, 100% - 2 * var(--iy-gutter)); }

/* Sezioni e schede del Modello: misure del sito attuale */
.iy-msection { padding: 80px 0; }
.iy-msection__grid { width: min(1140px, 100% - 2 * var(--iy-gutter)); gap: 62px; }
.iy-msection__title { font-size: clamp(36px, 4.45vw, 64px); line-height: 1; }
.iy-msection__text { color: rgba(0, 0, 0, .6); font-size: 16px; line-height: 23.8px; }
.iy-msection__media--cover img { height: 623px; object-fit: cover; }
.iy-mtabs__bar .iy-container,
.iy-mtabs .iy-msection__grid { width: min(90%, 100% - 2 * var(--iy-gutter)); max-width: none; }
.iy-mtabs .iy-msection__grid { gap: 69px; }
.iy-mtabs__bar button { padding-block: 22px; }
.iy-mtabs .iy-slider__track img { height: 530px; object-fit: cover; }
@media (max-width: 767px) {
  .iy-msection__media--cover img,
  .iy-mtabs .iy-slider__track img { height: auto; aspect-ratio: 4 / 3; }
}

/* Galleria a mosaico con filtri (37 Classic / Fuoribordo): misure del sito attuale */
.iy-mgrid { padding: 100px 0 50px; }
.iy-mgrid__filters { display: flex; justify-content: center; gap: 11px; margin-bottom: 29px; }
.iy-mgrid__filters button {
  padding: 8px 18px;
  color: var(--iy-white);
  background: #0c71c3;
  border: 0;
  border-radius: 5px;
  font: 400 18px/1.2 var(--iy-font-body);
  cursor: pointer;
}
.iy-mgrid__filters button.is-active { background: #07408c; }
.iy-mgrid__list { display: flex; gap: 6px; align-items: flex-start; width: min(90%, 100% - 2 * var(--iy-gutter)); margin: 0 auto; padding: 0; list-style: none; }
.iy-mgrid__col { flex: 1 1 0; min-width: 0; }
.iy-mgrid__col > ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.iy-mgrid__list li[hidden] { display: none; }
.iy-mgrid__list a { display: block; cursor: zoom-in; }
.iy-mgrid__list img { width: 100%; height: auto; }

/* Schede foto senza testo: foto grande 1080px con le sue proporzioni */
.iy-mtabs .iy-msection__grid--full { grid-template-columns: minmax(0, 1080px); }
.iy-mtabs .iy-msection__grid--full .iy-slider__track img { height: auto; }

/* Scheda "testo sopra + striscia" (Italyure 52): misure del sito attuale */
.iy-mtabs__stacked { width: min(1140px, 100% - 2 * var(--iy-gutter)); margin-bottom: 40px; }
.iy-mtabs__heading { margin-bottom: 14px; color: var(--iy-text); font-size: 36px; }
.iy-mtabs__subtitle { margin: 0 0 16px; color: var(--iy-text); font-size: 20px; font-style: italic; }
.iy-mtabs .iy-slider--strip .iy-slider__track { gap: 12px; }
.iy-mtabs .iy-slider--strip .iy-slider__track li { flex-basis: calc((100% - 48px) / 4.5); }
.iy-mtabs .iy-slider--strip .iy-slider__track img { height: auto; aspect-ratio: 4 / 5; }

/* Schede foto testo + foto affiancati (38, 50): misure del sito attuale */
.iy-mtabs .iy-msection__title--upper { color: var(--iy-text); font-size: 48px; line-height: 1; }
.iy-mtabs .iy-msection__subtitle { color: var(--iy-text); font-size: 19.2px; line-height: 1; margin-bottom: 10px; }
.iy-mtabs .iy-msection__text { color: var(--iy-text-soft); }
.iy-mtabs .iy-msection__grid:not(.iy-msection__grid--full) .iy-slider__track img { height: auto; }

/* ---------- Consenso cookie e link legali ---------- */

.iy-footer__policies { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.iy-footer__policies a,
.iy-footer__policies button { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.iy-footer__policies button { padding: 0; background: none; border: 0; cursor: pointer; }

.iy-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 16px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 1080px;
  margin-inline: auto;
  padding: 20px 24px;
  color: var(--iy-white);
  background: var(--iy-navy);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  font-size: 14px;
  line-height: 1.5;
}
.iy-consent[hidden] { display: none; }
.iy-consent p { flex: 1 1 420px; margin: 0; }
.iy-consent a { color: var(--iy-gold); text-decoration: underline; text-underline-offset: 3px; }
.iy-consent__actions { display: flex; gap: 12px; }
.iy-consent .iy-btn { min-width: 120px; justify-content: center; }
@media (max-width: 767px) {
  .iy-consent { inset: auto 0 0; padding: 18px 16px; }
  .iy-consent__actions, .iy-consent .iy-btn { flex: 1; }
}
.iy-consent .iy-btn--ghost { color: var(--iy-white); background: transparent; border: 1px solid rgba(255, 255, 255, .6); }
.iy-consent .iy-btn--ghost:hover { color: var(--iy-navy); background: var(--iy-white); }
.iy-contact__privacy { margin: 16px 0 0; color: var(--iy-muted); font-size: 13px; line-height: 1.5; }
.iy-contact__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sfogliabile PDF (sostituisce dFlip) ---------- */

.iy-flipbook { padding: 0; }
.iy-book {
  position: relative;
  margin: 0;
  padding: clamp(28px, 5vw, 64px) var(--iy-gutter) 22px;
  color: var(--iy-white);
  background: var(--iy-ocean) var(--iy-texture) center / 1400px auto;
  outline: none;
  overflow: hidden; /* il foglio che gira non crea scorrimento orizzontale */
}
.iy-book:focus-visible { box-shadow: inset 0 0 0 2px var(--iy-gold); }
.iy-book:fullscreen { display: flex; flex-direction: column; justify-content: center; }

.iy-book__stage { position: relative; display: grid; place-items: center; min-height: min(70vh, 560px); }
.iy-book.is-ready .iy-book__stage { min-height: 0; }
.iy-book__status { margin: 0; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; animation: iy-pulse 1.4s ease-in-out infinite; }
@keyframes iy-pulse { 50% { opacity: .35; } }

.iy-book__spread {
  position: relative;
  display: flex;
  width: calc(var(--w, 300px) * 2);
  height: var(--h, 420px);
  perspective: 2400px;
  transition: transform .6s var(--iy-ease);
}
.iy-book__spread.is-cover { transform: translateX(calc(var(--w) / -2)); }
.iy-book__spread.is-back { transform: translateX(calc(var(--w) / 2)); }
.iy-book__spread.is-single { width: var(--w); }
.iy-book__spread.is-single .iy-book__page--left { display: none; }

.iy-book__page {
  position: relative;
  width: var(--w);
  height: var(--h);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.iy-book__page { box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.iy-book__page.is-empty { background: none; box-shadow: none; cursor: default; }
.iy-book__page img { display: block; width: 100%; height: 100%; object-fit: cover; }
.iy-book__page img:not([src]) { visibility: hidden; }

/* Piega centrale: ombra verso la rilegatura. */
.iy-book__page--left::after,
.iy-book__page--right::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.iy-book__page--left::after { background: linear-gradient(to left, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 9%); }
.iy-book__page--right::after { background: linear-gradient(to right, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 9%); }
.iy-book__page.is-empty::after,
.is-single .iy-book__page::after { display: none; }

/* Foglio che gira: strisce annidate in 3D (vedi flipbook.js), ombreggiate in base all'inclinazione. */
.iy-book__leaf {
  position: absolute;
  top: 0;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 2;
}
.iy-book__leaf[hidden] { display: none; }
.iy-book__strip { position: absolute; top: 0; transform-style: preserve-3d; will-change: transform; outline: 1px solid transparent; /* bordi 3D senza seghettature */ }
.iy-book__sface { position: absolute; inset: 0; backface-visibility: hidden; }
.iy-book__sface--back { transform: rotateY(180deg); }
.iy-book__sface::after { content: ""; position: absolute; inset: 0; background: rgba(4, 18, 36, var(--s, 0)); }

.iy-book__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: .06em;
}
.iy-book__btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: inherit;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s;
}
.iy-book__btn:hover:not(:disabled) { color: var(--iy-navy); background: var(--iy-white); }
.iy-book__btn:disabled { opacity: .3; cursor: default; }
.iy-book__count { min-width: 132px; text-align: center; font-variant-numeric: tabular-nums; }
.iy-book__sep { width: 1px; height: 22px; margin: 0 8px; background: rgba(255, 255, 255, .22); }
@media (max-width: 767px) {
  .iy-book__count { min-width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .iy-book__spread { transition: none; }
}

/* ---------- Cambio pagina: dissolvenza leggera (View Transitions native, nessuno script) ---------- */

@view-transition { navigation: auto; }
.iy-header { view-transition-name: iy-header; } /* barra news e header restano fermi, si anima solo il contenuto */
.iy-newsbar { view-transition-name: iy-newsbar; }
::view-transition-old(root) { animation: iy-page-out .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: iy-page-in .42s cubic-bezier(.22, .61, .36, 1) .04s both; }
::view-transition-group(iy-header),
::view-transition-group(iy-newsbar) { animation-duration: 0s; }
@keyframes iy-page-out { to { opacity: 0; } }
@keyframes iy-page-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* =====================================================
   PRESS — archivio news: la più recente in evidenza, poi le altre per anno
===================================================== */

.iy-press { padding-bottom: var(--iy-section-y); }

.iy-press__date { margin: 0 0 10px; color: var(--iy-muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

.iy-press__lead {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 96px);
}
.iy-press__lead-media { display: block; overflow: hidden; background: var(--iy-bg); } /* proporzioni originali: le copertine hanno spesso testo */
.iy-press__lead-media img { width: 100%; transition: transform .8s var(--iy-ease); }
.iy-press__lead:hover .iy-press__lead-media img { transform: scale(1.03); }
.iy-press__lead-title { margin-bottom: 20px; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; }
.iy-press__lead-title a,
.iy-press__title a { color: var(--iy-navy); text-decoration: none; transition: color .25s var(--iy-ease); }
.iy-press__lead-title a:hover,
.iy-press__title a:hover { color: var(--iy-ocean); }
.iy-press__lead-excerpt { margin-bottom: 28px; color: var(--iy-text-soft); }

.iy-press__years {
  position: sticky;
  top: var(--iy-header-h);
  z-index: 5;
  display: flex;
  gap: 8px;
  padding-block: 14px;
  background: var(--iy-white);
  border-top: 1px solid var(--iy-border);
  border-bottom: 1px solid var(--iy-border);
}
.iy-press__years a {
  min-height: 36px;
  padding: 8px 16px;
  color: var(--iy-text-soft);
  border: 1px solid var(--iy-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color .25s var(--iy-ease), border-color .25s var(--iy-ease), background-color .25s var(--iy-ease);
}
.iy-press__years a:hover { color: var(--iy-white); background: var(--iy-navy); border-color: var(--iy-navy); }

.iy-press__year {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  padding-top: clamp(48px, 6vw, 80px);
  scroll-margin-top: calc(var(--iy-header-h) + 72px);
}
.iy-press__year-title { position: sticky; top: calc(var(--iy-header-h) + 96px); align-self: start; color: var(--iy-navy); font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.iy-press__year-title::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 16px; background: var(--iy-gold); }

.iy-press__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; margin: 0; padding: 0; list-style: none; }
.iy-press__item { position: relative; display: flex; flex-direction: column; }
.iy-press__media { display: block; overflow: hidden; margin-bottom: 18px; aspect-ratio: 16 / 9; background: var(--iy-bg); }
.iy-press__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--iy-ease); }
.iy-press__item:hover .iy-press__media img { transform: scale(1.04); }
.iy-press__title { margin-bottom: 10px; font-size: 21px; line-height: 1.2; }
.iy-press__title a::after { content: ""; position: absolute; inset: 0; } /* tutta la scheda è cliccabile */
.iy-press__excerpt { margin: 0; color: var(--iy-text-soft); font-size: 15px; line-height: 1.6; }

@media (max-width: 1100px) {
  .iy-press__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iy-press__year { grid-template-columns: 1fr; gap: 24px; }
  .iy-press__year-title { position: static; }
}
@media (max-width: 760px) {
  .iy-press__lead { grid-template-columns: 1fr; }
  .iy-press__grid { grid-template-columns: 1fr; gap: 40px; }
}
