/* ==========================================================================
   Rissolio — Landing
   Layout: griglia Bootstrap 5.3 (assets/vendor/bootstrap) + stili del brand.
   Breakpoint Bootstrap: sm ≥576 · md ≥768 · lg ≥992 · xl ≥1200 · xxl ≥1400
   Le classi del brand hanno prefisso r- dove il nome coincide con Bootstrap
   (r-btn, r-badge, r-card, r-lead, r-h2).
   ========================================================================== */

:root {
  --orange: #E8520F;
  --orange-dark: #C4430A;
  --orange-soft: #F07A42;
  --orange-tint: #FCE3D6;
  --orange-line: #F2B79A;
  --ink: #232323;
  --ink-2: #3a3a3a;
  --muted: #6b6b6b;
  --grey-bg: #F4F4F4;
  --line: #E6E6E6;
  --white: #fff;

  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --radius-lg: 28px;
  --radius-md: 22px;
  --header-h: 70px;

  /* Bootstrap: font e colori di base */
  --bs-body-font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--white);
  --bs-link-color-rgb: 232, 82, 15;
  --bs-link-hover-color-rgb: 196, 67, 10;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--orange-dark); }
::selection { background: #FAD7C4; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
p, ul { margin: 0; }
address { font-style: normal; margin: 0; }

/* Container Bootstrap con il margine laterale del brand */
.container-xxl { --bs-gutter-x: calc(var(--gutter) * 2); max-width: 1320px; }

.accent { color: var(--orange); }
.strong { font-weight: 700; }
.u { text-decoration: underline; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; color: #fff; }

/* ---------- Tipografia ---------- */
.eyebrow { margin: 0 0 28px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.r-h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.r-h2--spaced { margin: -12px 0 40px; max-width: 720px; }
.r-h2--xl { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }
.r-lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Pulsanti ---------- */
.r-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: #fff;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 13px; line-height: 1.2; white-space: nowrap;
}
.r-btn:hover { background: var(--orange-dark); color: #fff; }
.r-btn--sm { padding: 11px 20px; font-size: 12px; }
.r-btn--caps { letter-spacing: .04em; text-transform: uppercase; }
.r-btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.r-btn--ghost:hover { background: transparent; border-color: var(--orange); color: var(--orange); }
.r-btn--dark { background: var(--ink); }
.r-btn--dark:hover { background: var(--orange); }

.r-badge { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; font-size: 11px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.r-badge--media { position: absolute; top: 16px; left: 16px; z-index: 1; }

/* ---------- Header / navbar ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--ink); color: #fff; }
.site-header .navbar { padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; color: #fff; flex: none; padding: 0; margin: 0; }
.logo:hover { color: #fff; }
.logo img { display: block; height: 34px; width: auto; }
.logo--footer img { height: 40px; }
.site-header .nav-link { color: #fff; font-size: 14px; padding: 8px 14px; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: var(--orange); }
.navbar-toggler { border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(232,82,15,.45); }

/* Menu aperto su mobile */
@media (max-width: 767.98px) {
  .site-header .navbar-collapse { border-top: 1px solid rgba(255,255,255,.12); margin-top: 14px; padding: 8px 0 6px; }
  .site-header .nav-link { padding: 12px 0; font-size: 16px; }
  .site-header .nav-item .r-btn { margin: 10px 0 4px; width: 100%; padding: 14px 20px; font-size: 14px; }
}

/* ---------- Hero video ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #4a4a4a 0%, #232323 55%), var(--ink);
  color: #fff;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(35,35,35,.45) 0%, rgba(35,35,35,.3) 35%, rgba(35,35,35,.9) 100%),
    linear-gradient(90deg, rgba(35,35,35,.7) 0%, rgba(35,35,35,.15) 75%);
}
.hero__toggle {
  position: absolute; top: 24px; right: var(--gutter); z-index: 2;
  width: 36px; height: 36px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--orange); display: grid; place-items: center;
}
.hero__toggle:hover { background: var(--orange-dark); }
.hero__toggle .i-play { display: none; }
.hero__toggle[aria-pressed="true"] .i-play { display: block; }
.hero__toggle[aria-pressed="true"] .i-pause { display: none; }
.hero.no-video .hero__toggle { display: none; }

.hero__content { padding-top: clamp(96px, 12vw, 160px); }
.hero__content .row { row-gap: clamp(28px, 4vw, 56px); }
.hero__title { margin: 0; font-size: clamp(42px, 8.4vw, 128px); line-height: .98; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
.hero__title .strong { font-weight: 700; }
.hero__lead .accent, .hero__title .accent { color: #FF6A26; }
.hero__lead { text-shadow: 0 1px 12px rgba(0,0,0,.45); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; text-wrap: pretty; }
.hero__stats { margin-top: clamp(48px, 6vw, 88px); padding-bottom: 36px; }
.stat { display: grid; gap: 4px; border-top: 1px solid rgba(255,255,255,.3); padding-top: 18px; height: 100%; }
.stat__v { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.02em; }
.stat__l { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #c9c9c9; }

/* ---------- Sezioni ---------- */
.section { padding-top: var(--section); }
.section--last { padding-bottom: var(--section); }

/* Placeholder immagini (grigio finché manca la foto) */
.ph { position: relative; overflow: hidden; background: linear-gradient(180deg, #EDEDED, #D6D6D6); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph__label { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; color: #9a9a9a; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* Chi siamo */
.about__text { display: grid; gap: 24px; }
.about__kicker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.about__kicker .eyebrow { margin: 0; }
.about__lead { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; text-wrap: pretty; }
.about__body { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 560px; }
.about__body .hl { color: var(--orange); font-weight: 600; }
.about__media { aspect-ratio: 3 / 4; width: 100%; max-width: 560px; margin-inline: auto; border-radius: var(--radius-lg); }

/* Card soluzioni */
.r-card { height: 100%; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.6; }
.r-card--dark { background: var(--ink); color: #dcdcdc; }
.r-card--dark .r-card__title { color: #fff; }
.r-card--dark .hl { color: var(--orange-soft); font-weight: 600; }
.r-card--light { background: var(--grey-bg); color: var(--ink-2); }
.r-card--light .r-card__title { color: var(--ink); }
.r-card--light .hl { color: var(--orange-dark); font-weight: 600; }
.r-card__n { color: var(--orange); font-size: 20px; font-weight: 700; }
.r-card__title { margin: 0 0 8px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.r-card__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }

/* ---------- Cataloghi prodotti ---------- */
.catalog { margin-top: var(--section); }
.catalog--tinted { background: var(--grey-bg); padding: var(--section) 0; }
.catalog__head { display: grid; gap: 16px; margin-bottom: 40px; }
.kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kicker .dot { color: #9a9a9a; }
.prod-panels { min-width: 0; }

.prod-tabs { display: grid; gap: 8px; }
.prod-tab {
  display: flex; align-items: center; gap: 18px; width: 100%; text-align: left;
  padding: 20px 24px; border-radius: 18px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.prod-tab:hover { border-color: var(--orange); }
.prod-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.prod-tab__n { font-size: 15px; font-weight: 700; color: var(--orange); flex: none; }
.prod-tab__name { font-size: 17px; font-weight: 700; line-height: 1.3; flex: 1; }
.prod-tab__sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .65; }
.prod-tab__arrow { font-size: 18px; flex: none; transition: transform .2s; }
.prod-tab[aria-selected="true"] .prod-tab__arrow { transform: translateX(4px); }

.prod { animation: fade .35s ease; }
.prod[hidden] { display: none !important; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.media {
  position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 340px; margin-inline: auto;
  border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(180deg, #EDEDED, #D2D2D2);
}
.media__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.media.is-ready .media__video { opacity: 1; }
.media__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px;
  color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.media.is-ready .media__placeholder { display: none; }
.play { width: 64px; height: 64px; border-radius: 999px; background: var(--orange); display: grid; place-items: center; }

.prod__body { display: grid; gap: 18px; align-content: start; }
.prod__head { display: flex; gap: 8px; align-items: center; }
.prod__n { color: var(--orange); font-weight: 700; font-size: 18px; }
.prod__title { margin: 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-wrap: pretty; }
.prod__sub { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.prod__desc { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.prod__ideale { font-size: 16px; line-height: 1.6; color: var(--ink); font-weight: 600; }
.prod__body .eyebrow { margin: 8px 0 0; }
.checklist { padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 600; line-height: 1.4; }
.check { flex: none; margin-top: 1px; }
.prod__formati { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.prod__nota { font-size: 14px; line-height: 1.55; color: var(--ink); }
.prod__nota strong { font-weight: 700; }

/* Griglia industriale */
.icard { display: grid; gap: 16px; align-content: start; height: 100%; }
.icard__media { aspect-ratio: 4 / 3; border-radius: 20px; margin-bottom: 2px; }
.icard__n { position: absolute; top: 14px; left: 14px; z-index: 1; background: #fff; color: var(--orange); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.icard__title { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; }
.icard__desc { font-size: 15px; line-height: 1.55; color: #555; }
.checklist--sm li { font-size: 14px; }

/* Card industriali solo testo */
.icard--text { background: var(--grey-bg); border-radius: 22px; padding: clamp(24px, 3vw, 32px); gap: 14px; }
.icard--text .icard__n { position: static; align-self: start; justify-self: start; background: #fff; }

/* Card finale: rimando al catalogo FEFCO */
.fefco-cta { height: 100%; display: flex; flex-direction: column; gap: 14px; background: var(--ink); color: #dcdcdc; border-radius: 22px; padding: clamp(24px, 3vw, 32px); }
.fefco-cta__kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-soft); }
.fefco-cta__title { margin: 0; font-size: clamp(22px, 2vw, 26px); line-height: 1.2; font-weight: 700; color: #fff; text-wrap: balance; }
.fefco-cta p { font-size: 15px; line-height: 1.6; }
.fefco-cta__btn { gap: 8px; margin-top: auto; align-self: flex-start; white-space: normal; text-align: left; }

/* ---------- Case history (carosello) ---------- */
.case-history { margin-top: var(--section); padding: var(--section) 0 clamp(48px, 6vw, 80px); background: var(--orange); color: #fff; }
.case-history .kicker .accent { color: var(--ink); }
.case-history .kicker .dot { color: rgba(255,255,255,.6); }
.case-history .r-h2 { color: #fff; }
.case-history .r-lead { color: rgba(255,255,255,.92); }
.case-history .ch-fact { background: #fff; border-color: #fff; color: var(--ink); }
.case-history .ch-fact b { color: var(--orange-dark); }
.case-history .ch-slide.ph { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.1)); }
.case-history .ch-slide .ph__label { color: rgba(255,255,255,.85); }
.case-history .ch-count { color: rgba(255,255,255,.9); }
.case-history .ch-nav button { background: transparent; border-color: #fff; color: #fff; }
.case-history .ch-nav button:hover:not(:disabled) { background: #fff; color: var(--orange); }
.case-history :focus-visible { outline-color: #fff; }
.case-history__head { margin-bottom: clamp(28px, 4vw, 48px); }
.case-history .kicker { margin-bottom: 16px; }
.case-history .r-h2 { margin-bottom: 14px; }
/* Etichette in colonna, stessa larghezza e testi allineati */
.ch-facts { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; width: 100%; max-width: 380px; }
@media (min-width: 992px) { .ch-facts { margin-left: auto; } }
.ch-fact { display: flex; align-items: baseline; gap: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; font-size: 14px; line-height: 1.3; }
.ch-fact b { flex: 0 0 74px; color: var(--orange); }
.ch-strip {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))) 18px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.ch-strip::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .ch-strip { cursor: grab; } }
.ch-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.ch-strip img { pointer-events: none; -webkit-user-drag: none; }
.ch-strip:focus-visible { outline-offset: -2px; }
.ch-slide { flex: 0 0 clamp(240px, 30vw, 400px); aspect-ratio: 4 / 5; border-radius: 22px; margin: 0; scroll-snap-align: start; }
.ch-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.ch-count { font-size: 13px; color: var(--muted); }
.ch-nav { display: flex; gap: 8px; }
.ch-nav button { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; transition: background-color .2s, color .2s, opacity .2s; }
.ch-nav button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.ch-nav button:disabled { opacity: .3; cursor: default; }
@media (max-width: 575.98px) { .ch-slide { flex-basis: 78vw; } .ch-nav button { width: 44px; height: 44px; } }

/* ---------- Come lavoriamo ---------- */
.step { display: grid; gap: 10px; align-content: start; }
.step__n { color: var(--orange); font-size: 18px; font-weight: 700; }
.step__t { font-size: 19px; font-weight: 700; }
.step p { font-size: 15px; line-height: 1.6; color: #555; }

/* ---------- Contatti ---------- */
.contact { border: 1px solid var(--orange-line); border-radius: 24px; padding: clamp(24px, 4vw, 56px); }
.contact__text { display: grid; gap: 16px; }
.contact__text .eyebrow { margin: 0; }
.contact__text p { font-size: 16px; line-height: 1.55; color: #555; }
.contact__links { display: grid; gap: 12px; }
.pill {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 28px; border-radius: 999px;
  font-size: clamp(16px, 1.6vw, 22px); font-weight: 700; overflow-wrap: anywhere;
}
.pill--accent { background: var(--orange); color: #fff; }
.pill--accent:hover { background: var(--orange-dark); color: #fff; }
.pill--light { background: var(--grey-bg); color: var(--ink); }
.pill--light:hover { background: var(--orange-tint); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.site-footer a { color: #fff; }
.site-footer a.accent { color: var(--orange); }
.site-footer a:hover { color: var(--orange); }
.site-footer__inner { padding-top: 56px; padding-bottom: 40px; }
.site-footer__info { display: grid; gap: 6px; font-size: 14px; line-height: 1.6; }
.site-footer__info .strong { font-size: 15px; }
.site-footer__bottom { margin-top: 40px; font-size: 12px; }

/* ---------- Torna su ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 1020;
  width: 48px; height: 48px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--orange); color: #fff; border: 2px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s, transform .25s, background-color .2s;
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--orange-dark); color: #fff; }

/* ==========================================================================
   Responsive (breakpoint Bootstrap)
   ========================================================================== */

/* Tablet e mobile: tab prodotti in scorrimento orizzontale, così il video resta vicino */
@media (max-width: 991.98px) {
  .catalog__head { margin-bottom: 28px; }
  .prod-tabs {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .prod-tab { flex: 0 0 auto; width: auto; max-width: 78vw; scroll-snap-align: start; padding: 14px 18px; gap: 12px; }
  .prod-tab__name { font-size: 15px; white-space: normal; }
  .prod-tab__arrow { display: none; }
}

/* Tablet (md): Chi siamo con testo e foto affiancati, foto meno alta */
@media (min-width: 768px) and (max-width: 991.98px) {
  .about__lead { font-size: 26px; }
}

/* Mobile */
@media (max-width: 575.98px) {
  :root { --header-h: 62px; }
  .site-header .navbar { padding-top: 12px; padding-bottom: 12px; }
  .logo img { height: 30px; }
  .about__media { max-width: 420px; }
  .media { max-width: 260px; }
  .pill { padding: 18px 22px; }
  .hero__toggle { top: 16px; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prod { animation: none; }
}
