/* profile.crastaspedizioni.it — la pagina del profilo, senza WordPress (28/10/2026).
   Desktop (oltre 1024 px): cinque slide a tutto schermo, una alla volta.
   Telefono e tablet: le stesse cinque, una sotto l'altra. */

@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/rubik-latin.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap;
  src: url(fonts/poppins-300-latin.woff2) format('woff2'); }

:root {
  --fondo: #12002A;
  --azzurro: #6EC1E4;
  --viola: #8347AD;
  --lilla: #B685F7;
  --grigio: #C4C4C4;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: #fff; font: 400 16px/1.5 Rubik, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.salta { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: var(--fondo); padding: .6rem 1rem; }
.salta:focus { left: 1rem; }

/* ─── Testata ─────────────────────────────────────────── */
.testata { position: absolute; z-index: 10; top: 0; left: 0; right: 0; height: 90px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 9.4%; }
.logo img { width: 145px; }
.voci { display: flex; align-items: center; gap: 1.1rem; font: 300 14px/21px Poppins, Rubik, sans-serif; }
.voci a { text-decoration: none; }
.voci a:hover { text-decoration: underline; }
.lingua { margin-left: 1.4rem; }
.lingua img { width: 18px; height: 12px; }
.testata .contatta-testata { display: none; }

/* ─── Bottoni ─────────────────────────────────────────── */
.bottone { display: inline-block; border: 1px solid #fff; border-radius: 20px; background: transparent;
  padding: 12px 24px; font: 500 20px/1 Rubik, sans-serif; color: #fff; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s; }
.bottone:hover, .bottone:focus-visible { background: #fff; color: var(--fondo); }
.bottone.pieno { background: var(--azzurro); border-color: var(--azzurro); color: var(--fondo); }
.bottone.pieno:hover { background: #fff; border-color: #fff; }
.solo-mobile { display: none; }

/* ─── Carosello (desktop) ─────────────────────────────── */
.carosello { position: relative; overflow: hidden; height: 100vh; min-height: 700px; }
.binario { display: flex; height: 100%; transition: transform .5s ease; }
.slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  position: relative; background: var(--fondo); overflow: hidden; }
.dentro { width: 80%; max-width: 1150px; display: flex; align-items: center; gap: 3.5rem; }
.frecce { position: absolute; z-index: 5; bottom: 52px; left: 50%; transform: translateX(-50%); display: flex; gap: 150px; }
.freccia { width: 50px; height: 50px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.freccia svg { width: 22px; height: 36px; fill: #fff; }
.freccia.succ svg { transform: scaleX(-1); }
.freccia:disabled { opacity: .35; cursor: default; }
.freccia:focus-visible { outline: 2px solid var(--azzurro); outline-offset: 4px; border-radius: 6px; }

/* La colonna di sinistra con la riga che la separa (slide 2 e 4) */
.lato { flex: 0 0 280px; }
.s1 .lato, .s3 .lato { align-self: stretch; display: flex; flex-direction: column; justify-content: center;
  padding-right: 3.5rem; border-right: 1px solid rgba(255, 255, 255, .45); }

/* 1 — Think Glocal */
.s0 { background: #000 url(img/hero.webp) center / cover no-repeat; }
.s0::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .51); }
.s0 .dentro { position: relative; justify-content: space-between; }
.video { flex: 0 0 47%; position: relative; aspect-ratio: 16 / 11.6; padding: 0; border: 0; border-radius: 16px;
  overflow: hidden; background: #000; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video:hover img { transform: scale(1.03); }
.play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(18, 0, 42, .75); border: 2px solid #fff; }
.play::after { content: ''; position: absolute; left: 33px; top: 25px; border: 17px solid transparent;
  border-left: 26px solid #fff; border-right: 0; }
.video:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 4px; }
.s0 .testo { flex: 0 0 47%; }
.s0 h1 { font-size: 64px; margin-bottom: 1.6rem; }
.s0 .sotto { font: 600 32px/35px Rubik, sans-serif; margin-bottom: 2.4rem; }
.s0 .testo p:not(.sotto) { font-size: 22px; line-height: 28px; margin-bottom: 1rem; }

/* 2 — Affidabilità nel tempo */
.s1 h2 { font-size: 38.4px; color: var(--azzurro); margin-bottom: 1.4rem; }
.s1 .lato p { font-size: 20px; line-height: 30px; }
.tappe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: start; }
.tappa img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; margin-bottom: 1.4rem; }
.tappa h3 { font-size: 32px; color: var(--viola); margin-bottom: 1.2rem; white-space: nowrap; }
.tappa p { font-size: 16px; line-height: 24px; }

/* 3 — Servizi */
.s2 .lato { flex-basis: 348px; }
.s2 h2 { font-size: 32px; margin-bottom: 1.6rem; }
.vantaggi { border: 1px solid var(--lilla); border-radius: 20px; padding: 20px; }
.vantaggi h3 { font-size: 19.2px; text-transform: uppercase; margin-bottom: 1.2rem; }
.vantaggi .griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
.vantaggi h4 { font-size: 20px; color: var(--azzurro); margin-bottom: .8rem; }
.vantaggi p { font-size: 16px; line-height: 24px; }
.servizi { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.1rem; }
.servizio { position: relative; isolation: isolate; min-height: 180px; padding: 10px 12px;
  background: url(img/servizi.webp) center / cover; }
.servizio::before { content: ''; position: absolute; inset: 0; z-index: -1; mix-blend-mode: multiply;
  background: radial-gradient(at top left, #085563 25%, #622F86 76%); }
.servizio h3 { font-size: 21px; font-weight: 800; line-height: 1.05; margin: .4rem 0 .8rem; }
.servizio p { font-size: 14px; line-height: 1.35; font-weight: 500; }

/* 4 — Settori */
.s3 .lato { flex-basis: 300px; }
.s3 h2 { font-size: 38.4px; margin-bottom: 1.4rem; }
.s3 .lato p { font-size: 18px; line-height: 27px; margin-bottom: 1rem; }
.settori { flex: 1; }
.settori details { border-bottom: 1px solid transparent; }
.settori details[open] { border-bottom-color: rgba(255, 255, 255, .3); padding-bottom: 1.1rem; margin-bottom: .4rem; }
.settori summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: .55rem .4rem; font-size: 20px; font-weight: 600; color: var(--grigio); }
.settori summary::-webkit-details-marker { display: none; }
.settori summary span::before { content: '+'; font-weight: 300; font-size: 24px; }
.settori details[open] summary { color: var(--azzurro); }
.settori details[open] summary span::before { content: '−'; }
.settori summary:hover { color: #fff; }
.settori summary:focus-visible { outline: 2px solid var(--azzurro); outline-offset: 2px; }
.settori details p { padding: .4rem .4rem 0; font-size: 18px; line-height: 27px; }

/* 5 — Glocal Forwarder */
.s4 .dentro { flex-direction: column; text-align: center; gap: 0; max-width: 1100px; }
.s4 h2 { font-size: 48px; line-height: 1; margin-bottom: 2rem; }
.uffici { font-size: 26px; line-height: 39px; color: var(--azzurro); margin-bottom: 1.6rem; }
.app { font-size: 18px; line-height: 1.5; max-width: 760px; margin: 0 auto 1.8rem; }
.app a { color: var(--azzurro); font-weight: 600; white-space: nowrap; }
.azioni { margin-bottom: 2.4rem; }
.loghi { display: flex; justify-content: space-around; align-items: center; gap: 1rem; width: 700px; max-width: 100%;
  height: 114px; padding: 0 1.2rem; background: #F5F5F5; border-radius: 20px; }
.loghi img { width: auto; max-height: 92px; max-width: 22%; }

/* ─── Piede: sedi e dati societari ────────────────────── */
.piede { border-top: 1px solid rgba(255, 255, 255, .15); padding: 3rem 9.4% 2rem; font-size: 14px; line-height: 1.55; }
.sedi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.sedi address { font-style: normal; color: rgba(255, 255, 255, .85); }
.sedi strong { display: block; font-size: 17px; color: #fff; text-transform: uppercase; }
.sedi span { display: block; color: var(--azzurro); font-size: 13px; margin-bottom: .5rem; }
.sedi a { text-decoration: none; }
.sedi a:hover { text-decoration: underline; }
.fondo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); font-size: 13px; }
.fondo .link a { text-decoration: none; }
.fondo .link a:hover { text-decoration: underline; color: #fff; }
.social { display: flex; gap: 1rem; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; }
.social a:hover { background: #fff; }
.social svg { width: 16px; height: 16px; fill: #fff; }
.social a:hover svg { fill: var(--fondo); }

/* ─── Finestre: modulo e video ────────────────────────── */
.finestra { border: 0; padding: 0; background: transparent; color: #fff; max-width: none; max-height: none; }
.finestra::backdrop { background: rgba(8, 0, 20, .82); }
.chiudi { position: absolute; top: .4rem; right: .6rem; width: 44px; height: 44px; border: 0; background: none;
  color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.modulo { width: min(640px, calc(100% - 32px)); background: var(--fondo); border: 1px solid var(--lilla);
  border-radius: 20px; padding: 2.2rem 2rem 2rem; }
.modulo h2 { font-size: 32px; margin-bottom: .6rem; color: var(--azzurro); }
.modulo > p { margin-bottom: 1.4rem; }
.modulo form { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.modulo .intera { grid-column: 1 / -1; }
.modulo label > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.modulo label.spunta > span { position: static; width: auto; height: auto; clip: auto; }
.modulo input:not([type=checkbox]), .modulo select, .modulo textarea { width: 100%; padding: .7rem .8rem; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.modulo select option { color: #000; }
.modulo input::placeholder, .modulo textarea::placeholder { color: rgba(255, 255, 255, .6); }
.modulo :is(input, select, textarea):focus { outline: 2px solid var(--azzurro); outline-offset: 1px; }
.spunta { display: flex; gap: .6rem; align-items: flex-start; font-size: 14px; }
.spunta input { margin-top: .25rem; accent-color: var(--azzurro); }
.spunta a { color: var(--azzurro); }
.trappola { position: absolute; left: -9999px; }
.video-finestra { width: min(1100px, calc(100% - 32px)); }
.video-finestra .chiudi { top: -3rem; right: 0; }
.cornice { aspect-ratio: 16 / 9; background: #000; }
.cornice iframe { width: 100%; height: 100%; border: 0; }
.avviso { position: fixed; z-index: 50; left: 50%; bottom: 1.5rem; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  padding: .9rem 1.3rem; border-radius: 12px; background: #fff; color: var(--fondo); font-weight: 500; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }

/* ─── Telefono e tablet: le slide una sotto l'altra ───── */
@media (max-width: 1024px) {
  .testata { position: static; height: auto; padding: 18px 16px; background: var(--fondo); }
  .logo img { width: 175px; }
  .voci { display: none; }
  .testata .contatta-testata { display: inline-block; font-size: 17px; padding: 10px 18px; }
  .carosello { height: auto; min-height: 0; overflow: visible; }
  .binario { display: block; transform: none !important; }
  .slide { height: auto; display: block; padding: 3rem 16px; }
  .slide + .slide { border-top: 1px solid rgba(255, 255, 255, .12); }
  .dentro { width: 100%; flex-direction: column; align-items: stretch; gap: 2rem; }
  .frecce { display: none; }
  .lato, .s2 .lato, .s3 .lato { flex-basis: auto; }
  .s1 .lato, .s3 .lato { padding-right: 0; border-right: 0; }

  .s0 { background-image: url(img/hero-960.webp); padding-top: 2.5rem; }
  .s0 .dentro { flex-direction: column-reverse; }
  .video, .s0 .testo { flex-basis: auto; width: 100%; }
  .s0 h1 { font-size: 48px; }
  .s0 .sotto { font-size: 26px; line-height: 1.15; color: var(--azzurro); margin-bottom: 1.4rem; }
  .s0 .testo p:not(.sotto) { font-size: 19px; line-height: 1.45; }

  .s1 h2, .s3 h2 { font-size: 32px; }
  .s1 .lato p { font-size: 18px; line-height: 1.6; }
  .tappe { grid-template-columns: 1fr; gap: 2.2rem; }
  .tappa h3 { font-size: 28px; }

  .servizi { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .app { font-size: 17px; }
  .piede { padding: 2.5rem 16px 2rem; }
  .sedi { grid-template-columns: 1fr 1fr; }
  .fondo { flex-direction: column; align-items: flex-start; }
  .servizio { min-height: 220px; }
  .servizio h3 { font-size: 19px; }

  .settori summary { font-size: 18px; padding-left: 0; padding-right: 0; }
  .settori details p { padding-left: 0; padding-right: 0; font-size: 16px; line-height: 1.6; }

  .s4 h2 { font-size: 30px; line-height: 1.15; }
  .uffici { font-size: 20px; line-height: 1.5; }
  .azioni { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
  .solo-mobile { display: inline-block; }
  .loghi { height: auto; flex-wrap: wrap; padding: 1rem; }
  .loghi img { max-width: 40%; max-height: 80px; }

  .modulo { padding: 2rem 1.2rem 1.4rem; }
  .modulo form { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .servizi { grid-template-columns: repeat(3, 1fr); }
  .sedi { grid-template-columns: repeat(3, 1fr); }
  .tappe { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .binario, .video img { transition: none; }
}
