/* Maestrale — percorso */

.mae-path {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(96px, 10vw, 150px) 0 clamp(110px, 12vw, 170px);
  color: #C9D6E4;
  background:
    radial-gradient(55% 45% at 85% 10%, rgba(47,96,134,.45) 0%, transparent 70%),
    radial-gradient(45% 40% at 5% 95%, rgba(84,4,9,.45) 0%, transparent 70%),
    linear-gradient(180deg, #0A1E3D 0%, #050E1F 100%);
}
.mae-path::before { /* trama a puntini, come nella sezione prodotti, ma in negativo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.mae-path__sail { /* la M di Maestrale, enorme, sullo sfondo */
  position: absolute; z-index: -1; right: -8vw; top: 4%; width: min(62vw, 900px); aspect-ratio: 1; pointer-events: none;
  background: linear-gradient(135deg, #85B3D7, #E3A3A7); opacity: .07;
  -webkit-mask: url("../../img/MG_icona_solo_bordo_white.png") center / contain no-repeat; mask: url("../../img/MG_icona_solo_bordo_white.png") center / contain no-repeat;
}

.mae-path__head { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 90px); align-items: end; margin-bottom: clamp(70px, 8vw, 120px); }
.mae-path__eyebrow { color: #E3A3A7; }
.mae-path__title { margin: 18px 0 0; color: #FFFFFF; font-size: clamp(2.1rem, 1.2rem + 3vw, 4rem); line-height: 1.05; font-weight: 300; letter-spacing: -.03em; text-wrap: balance; }
.mae-path__title em {
  font-style: normal; font-weight: 600;
  background: linear-gradient(90deg, #E3A3A7 10%, #9CC2E0 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mae-path .mae-btn--primary { background: #540409; color: #FFFFFF; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 10px 26px -12px rgba(0,0,0,.6); }
.mae-path .mae-btn--primary:hover { background: #6E0E13; }
.mae-path__stage { position: relative; }
.mae-path__wind { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.mae-path__wind path { fill: none; stroke-linecap: round; }
.mae-path__ghost { stroke: rgba(133,179,215,.22); stroke-width: 1.2; stroke-dasharray: 2 9; }
.mae-path__line { stroke-width: 2.4; filter: drop-shadow(0 0 6px rgba(133,179,215,.65)); }
.mae-path__dot { fill: #FFFFFF; filter: drop-shadow(0 0 8px #85B3D7) drop-shadow(0 0 18px rgba(133,179,215,.8)); transition: opacity .3s; }

.mae-path__list {
  position: relative; z-index: 1; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 3vw, 44px); row-gap: 120px;
}
.mae-path__step:nth-child(4) { grid-column: 3; grid-row: 2; }
.mae-path__step:nth-child(5) { grid-column: 2; grid-row: 2; }
.mae-path__step:nth-child(6) { grid-column: 1; grid-row: 2; }
.mae-path__step { position: relative; display: flex; }

.mae-path__node {
  position: absolute; left: 50%; top: 0; z-index: 2; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font: 500 .875rem var(--font-menu); letter-spacing: .06em; color: #85B3D7;
  background: #071228; border: 1px solid rgba(133,179,215,.35);
  transition: background .6s, color .6s, border-color .6s, box-shadow .6s, transform .6s;
}
.mae-path__step.is-lit .mae-path__node {
  color: #FFFFFF; border-color: transparent; transform: translate(-50%, -50%) scale(1.06);
  background: linear-gradient(135deg, #540409, #2F6086);
  box-shadow: 0 0 0 6px rgba(133,179,215,.12), 0 0 28px rgba(133,179,215,.55);
}

.mae-path__card {
  position: relative; isolation: isolate; overflow: hidden; flex: 1;
  display: flex; flex-direction: column; gap: 14px;
  padding: 52px 30px 30px; border-radius: 24px; min-height: 300px;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.09);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .6s var(--ease-standard), border-color .6s, box-shadow .6s, opacity .8s;
}
.js-path .mae-path__card { opacity: .38; transform: translateY(22px); }
.js-path .is-lit .mae-path__card { opacity: 1; transform: none; border-color: rgba(133,179,215,.28); }
.mae-path__card::after { /* alone che segue il cursore */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(133,179,215,.22), transparent 65%);
}
.mae-path__img { /* la fotografia affiora al passaggio */
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12); filter: saturate(.85);
  transition: opacity .7s var(--ease-standard), transform 1.2s var(--ease-standard);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 55%, transparent 100%);
}
.mae-path__card::before { /* velo sopra la foto per tenere leggibile il testo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .7s;
  background: linear-gradient(180deg, rgba(5,14,31,.35) 0%, rgba(5,14,31,.88) 60%, #050E1F 100%);
}
.mae-path__card:hover, .mae-path__card:focus-within { transform: translateY(-8px); border-color: rgba(133,179,215,.5); box-shadow: 0 40px 70px -34px rgba(0,0,0,.9), 0 0 0 1px rgba(133,179,215,.15); }
.mae-path__card:hover .mae-path__img, .mae-path__card:focus-within .mae-path__img { opacity: .75; transform: scale(1); }
.mae-path__card:hover::before, .mae-path__card:focus-within::before, .mae-path__card:hover::after { opacity: 1; }

.mae-path__icon { color: #85B3D7; transition: color .5s, transform .6s var(--ease-standard); }
.mae-path__card:hover .mae-path__icon { color: #FFFFFF; transform: translateY(-2px) rotate(-6deg); }
.mae-path__name { margin: 4px 0 0; color: #FFFFFF; font-size: 1.6rem; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.mae-path__text { margin: 0; flex: 1; font-size: 1rem; line-height: 1.6; color: #C9D6E4; }
.mae-path__link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  font: 500 .875rem var(--font-menu); letter-spacing: .1em; text-transform: uppercase; color: #FFFFFF; text-decoration: none;
}
.mae-path__link::after { content: ""; position: absolute; inset: 0; }
.mae-path__link svg { transition: transform .3s; }
.mae-path__card:hover .mae-path__link svg { transform: translateX(5px); }
.mae-path__link:hover { color: #FFFFFF; }
.mae-path__link:focus-visible { outline: none; }
.mae-path__card:focus-within { outline: 2px solid #85B3D7; outline-offset: 4px; }

@media (max-width: 1100px) {
  .mae-path__head { grid-template-columns: 1fr; align-items: start; }
  .mae-path__list { grid-template-columns: repeat(2, 1fr); row-gap: 100px; }
  .mae-path__step:nth-child(3) { grid-column: 2; grid-row: 2; }
  .mae-path__step:nth-child(4) { grid-column: 1; grid-row: 2; }
  .mae-path__step:nth-child(5) { grid-column: 1; grid-row: 3; }
  .mae-path__step:nth-child(6) { grid-column: 2; grid-row: 3; }
}
@media (max-width: 640px) {
  .mae-path__list { grid-template-columns: 1fr; row-gap: 70px; }
  .mae-path__step:nth-child(n) { grid-column: 1; grid-row: auto; }
  .mae-path__node { left: 34px; }
  .mae-path__card { min-height: 0; padding: 46px 24px 26px; }
  .mae-path__img { opacity: .4; transform: none; }
  .mae-path__card::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js-path .mae-path__card { opacity: 1; transform: none; }
  .mae-path__card, .mae-path__img, .mae-path__node { transition: none; }
}
.mae-path__head { grid-template-columns: 1fr 1fr; align-items: center; }
.mae-path__title { font-size: clamp(2rem, 1.2rem + 2.3vw, 3.4rem); line-height: 1.08; }
.mae-path__lead { margin: 26px 0 32px; font-size: var(--lead); line-height: 1.6; color: #C9D6E4; max-width: 32rem; }
.mae-path__photo { position: relative; margin: 0; }
.mae-path__frame {
  position: relative; display: block; overflow: hidden; border-radius: 28px; aspect-ratio: 1200 / 1054;
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(1.5deg); transition: transform 1s var(--ease-standard);
}
.mae-path__photo:hover .mae-path__frame { transform: rotate(0deg) scale(1.01); }
.mae-path__frame img { display: block; width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--par, -8%)); will-change: transform; }
.mae-path__frame::after { /* la foto si fonde con la notte: blu ai bordi, bordeaux in basso */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(200deg, rgba(47,96,134,.28) 0%, transparent 40%),
    linear-gradient(0deg, rgba(84,4,9,.45) 0%, transparent 38%);
  box-shadow: inset 0 0 0 1px rgba(133,179,215,.2);
  border-radius: inherit;
}
.mae-path__photo::before { /* bordo luminoso che gira, come le card prodotti */
  content: ""; position: absolute; inset: -1px; z-index: 1; border-radius: 29px; padding: 1.5px; pointer-events: none; transform: rotate(1.5deg);
  background: conic-gradient(from var(--mae-ang), transparent 0deg, #85B3D7 70deg, #E3A3A7 140deg, transparent 220deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: mae-spin 8s linear infinite; transition: transform 1s var(--ease-standard);
}
.mae-path__photo:hover::before { transform: none; }
.mae-path__photo-sail { /* la vela esce dalla cornice */
  position: absolute; z-index: 2; right: -34px; top: -46px; width: 150px; aspect-ratio: 1; pointer-events: none;
  background: linear-gradient(135deg, #FFFFFF, #85B3D7);
  -webkit-mask: url("../../img/MG_icona_solo_bordo_white.png") center / contain no-repeat; mask: url("../../img/MG_icona_solo_bordo_white.png") center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(133,179,215,.6));
}
@media (max-width: 1100px) {
  .mae-path__head { grid-template-columns: 1fr; }
  .mae-path__photo { max-width: 620px; margin: 30px auto 0; width: 100%; }
}
@media (max-width: 640px) {
  .mae-path__photo-sail { width: 96px; right: -6px; top: -34px; }
}
@media (prefers-reduced-motion: reduce) {
  .mae-path__frame img { transform: none; height: 100%; }
  .mae-path__photo::before { animation: none; }
}
.mae-path__frame, .mae-path__photo::before, .mae-path__photo:hover .mae-path__frame { transform: none; }
.mae-path__frame { aspect-ratio: auto; }
.mae-path__frame img { height: auto; transform: none; object-fit: initial; }
.mae-path__photo:hover .mae-path__frame { transform: translateY(-4px); }
.mae-path__img { -webkit-mask-image: none; mask-image: none; filter: saturate(1.05); }
.mae-path__card:hover .mae-path__img, .mae-path__card:focus-within .mae-path__img { opacity: 1; transform: scale(1.03); }
.mae-path__card::before { background: linear-gradient(180deg, rgba(5,14,31,.05) 0%, rgba(5,14,31,.25) 40%, rgba(5,14,31,.82) 78%, rgba(5,14,31,.94) 100%); }
.mae-path__card:hover .mae-path__name, .mae-path__card:hover .mae-path__text, .mae-path__card:hover .mae-path__link { text-shadow: 0 1px 12px rgba(5,14,31,.9); }
.mae-path__card:hover .mae-path__text { color: #E6EEF6; }
.mae-path__card:hover .mae-path__icon { filter: drop-shadow(0 1px 8px rgba(5,14,31,.9)); }
.mae-path--blu {
  background:
    radial-gradient(55% 45% at 88% 8%, rgba(133,179,215,.35) 0%, transparent 70%),
    radial-gradient(45% 40% at 4% 96%, rgba(84,4,9,.35) 0%, transparent 70%),
    linear-gradient(180deg, #2F6086 0%, #264F72 55%, #1F4566 100%);
}
.mae-path--blu::before { background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.4px); }
.mae-path--blu .mae-path__sail { background: linear-gradient(135deg, #FFFFFF, #85B3D7); opacity: .09; }
.mae-path--blu .mae-path__title em { background: linear-gradient(90deg, #F2C4C7 10%, #FFFFFF 90%); -webkit-background-clip: text; background-clip: text; }
.mae-path--blu .mae-path__lead, .mae-path--blu .mae-path__text { color: #E3EEF7; }
.mae-path--blu .mae-path__eyebrow { color: #F2C4C7; }
.mae-path--blu .mae-path__card { background: linear-gradient(165deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border-color: rgba(255,255,255,.16); }
.mae-path--blu .mae-path__node { background: #1F4566; border-color: rgba(255,255,255,.35); color: #FFFFFF; }
.mae-path--blu .mae-path__icon { color: #CFE2F2; }
.mae-path--blu .mae-path__ghost { stroke: rgba(255,255,255,.28); }
.mae-path--blu .mae-path__line { filter: drop-shadow(0 0 6px rgba(255,255,255,.5)); }
.mae-path--blu .mae-path__frame::after { background: linear-gradient(0deg, rgba(84,4,9,.35) 0%, transparent 38%); }

/* animazioni */
@keyframes mae-spin { to { --mae-ang: 360deg; } }

/* titoli in colore pieno (2026-11-16) */
.mae-path__title em, .mae-path--blu .mae-path__title em { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: #FFFFFF; }

/* =====================================================================
   Cosa facciamo (2026-11-16): niente rosa né bordeaux decorativi,
   etichetta in bordeaux come nelle altre sezioni.
   ===================================================================== */
.mae-path--blu { background: radial-gradient(55% 45% at 88% 8%, rgba(133,179,215,.35) 0%, transparent 70%), linear-gradient(180deg, #2F6086 0%, #264F72 55%, #1F4566 100%); }
.mae-path__eyebrow, .mae-path--blu .mae-path__eyebrow { color: #CFE2F2; }
.mae-path__sail, .mae-path--blu .mae-path__sail { background: #FFFFFF; }
.mae-path__step.is-lit .mae-path__node { background: #85B3D7; color: #0A1E3D; }
.mae-path__frame::after, .mae-path--blu .mae-path__frame::after { background: linear-gradient(200deg, rgba(47,96,134,.28) 0%, transparent 40%); }
.mae-path__photo::before { background: conic-gradient(from var(--mae-ang), transparent 0deg, #85B3D7 70deg, #FFFFFF 140deg, transparent 220deg); }

/* etichetta "Cosa facciamo": centrata sopra testo e foto, senza sfondo.
   In celeste chiaro: il bordeaux delle altre etichette sul blu non si leggerebbe. */
.mae-path__etichetta, .mae-path--blu .mae-path__etichetta { display: block; margin: 0 0 clamp(28px, 3vw, 40px); padding: 0; background: none; text-align: center; color: #CFE2F2; }
.mae-path__head .mae-path__title { margin-top: 0; }

/* =====================================================================
   Sfondi di "Cosa facciamo" (proposte, 2026-11-16): colori pieni, senza sfumature.
   pieno = blu Maestrale · notte = blu notte · celeste = celeste Maestrale · chiaro = grigio chiaro
   ===================================================================== */
.mae-path.mae-path--pieno { background: #2F6086; }
.mae-path.mae-path--notte { background: #0A1E3D; }
.mae-path.mae-path--celeste { background: #85B3D7; }
.mae-path.mae-path--chiaro { background: #F4F7FB; }

/* sfondi chiari: testi blu notte, card bianche, linea blu */
.mae-path--celeste, .mae-path--chiaro { color: #1B1E24; }
.mae-path--celeste::before, .mae-path--chiaro::before { background-image: radial-gradient(rgba(10,30,61,.12) 1px, transparent 1.4px); }
.mae-path--celeste .mae-path__sail, .mae-path--chiaro .mae-path__sail { background: #FFFFFF; opacity: .25; }
.mae-path--chiaro .mae-path__sail { background: #85B3D7; opacity: .14; }
.mae-path--celeste .mae-path__etichetta, .mae-path--chiaro .mae-path__etichetta { color: #540409; }
.mae-path--celeste .mae-path__title, .mae-path--chiaro .mae-path__title { color: #0A1E3D; }
.mae-path--celeste .mae-path__title em, .mae-path--chiaro .mae-path__title em { color: #0A1E3D; }
.mae-path--chiaro .mae-path__title em { color: #2F6086; }
.mae-path--celeste .mae-path__lead, .mae-path--chiaro .mae-path__lead { color: #1F2B38; }
.mae-path--celeste .mae-path__card, .mae-path--chiaro .mae-path__card { background: #FFFFFF; border-color: rgba(10,30,61,.08); box-shadow: 0 30px 56px -38px rgba(10,30,61,.45); }
.mae-path--celeste .js-path .is-lit .mae-path__card, .mae-path--chiaro .js-path .is-lit .mae-path__card,
.js-path .mae-path--celeste .is-lit .mae-path__card, .js-path .mae-path--chiaro .is-lit .mae-path__card { border-color: rgba(47,96,134,.3); }
.mae-path--celeste .mae-path__name, .mae-path--chiaro .mae-path__name { color: #1B1E24; }
.mae-path--celeste .mae-path__text, .mae-path--chiaro .mae-path__text { color: #46515E; }
.mae-path--celeste .mae-path__icon, .mae-path--chiaro .mae-path__icon { color: #2F6086; }
.mae-path--celeste .mae-path__link, .mae-path--chiaro .mae-path__link { color: #540409; }
.mae-path--celeste .mae-path__node, .mae-path--chiaro .mae-path__node { background: #FFFFFF; color: #1F4566; border-color: rgba(10,30,61,.2); }
.mae-path--celeste .mae-path__step.is-lit .mae-path__node, .mae-path--chiaro .mae-path__step.is-lit .mae-path__node { background: #540409; color: #FFFFFF; border-color: #540409; box-shadow: 0 0 0 6px rgba(84,4,9,.12); }
.mae-path--celeste .mae-path__line, .mae-path--chiaro .mae-path__line { stroke: #1F4566; filter: none; }
.mae-path--celeste .mae-path__ghost, .mae-path--chiaro .mae-path__ghost { stroke: rgba(10,30,61,.25); }
.mae-path--celeste .mae-path__dot, .mae-path--chiaro .mae-path__dot { fill: #540409; filter: none; }
/* al passaggio la foto affiora sotto un velo scuro: lì il testo torna bianco */
.mae-path--celeste .mae-path__card:hover .mae-path__name, .mae-path--chiaro .mae-path__card:hover .mae-path__name,
.mae-path--celeste .mae-path__card:hover .mae-path__link, .mae-path--chiaro .mae-path__card:hover .mae-path__link,
.mae-path--celeste .mae-path__card:hover .mae-path__icon, .mae-path--chiaro .mae-path__card:hover .mae-path__icon { color: #FFFFFF; }
.mae-path--celeste .mae-path__card:hover .mae-path__text, .mae-path--chiaro .mae-path__card:hover .mae-path__text { color: #E6EEF6; }


/* su celeste le tappe non ancora accese restano più visibili */
.js-path .mae-path--celeste .mae-path__step:not(.is-lit) .mae-path__card, .js-path .mae-path--chiaro .mae-path__step:not(.is-lit) .mae-path__card { opacity: .6; }
