/* Rifinitura grafica Intermarine — Vera per The Produser, 28/09/2026 */
/* niente scroll-behavior:smooth: fa sbagliare i calcoli di GSAP/ScrollTrigger al ridimensionamento (spazi neri nello slider) */
html, body { overflow-x: clip; }
::selection { background: #FFC64C; color: #000; }
html { scrollbar-color: #3a3a3a #000; scrollbar-width: thin; }

/* Barra evento: stesso carattere del sito */
.intermarine-event-box, .intermarine-event-text, .intermarine-countdown {
  font-family: "D-din font", "D-DIN", Sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.intermarine-countdown { font-variant-numeric: tabular-nums; color: #FFC64C; margin-left: .35em; }
a.intermarine-event-box { transition: opacity .3s ease; }
a.intermarine-event-box:hover { opacity: .8; }

/* Pulsanti: riempimento che scorre al passaggio (stile SpaceX), colori invariati */
.elementor-button { position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s ease, background-color .35s ease, border-color .35s ease, transform .35s ease; }
.elementor-button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: .12;
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.elementor-button:hover::before, .elementor-button:focus-visible::before { transform: scaleX(1); }

/* Immagini di elenchi, galleria e articoli: zoom lento al passaggio */
.elementor-post__thumbnail, .e-gallery-item, .elementor-widget-image a, .e-loop-item .elementor-widget-image { overflow: hidden; }
.elementor-post__thumbnail img, .e-gallery-image, .elementor-widget-image a img, .e-loop-item .elementor-widget-image img {
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.elementor-post:hover .elementor-post__thumbnail img, .e-gallery-item:hover .e-gallery-image,
.elementor-widget-image:not(.elementor-widget-theme-site-logo) a:hover img, .e-loop-item:hover .elementor-widget-image img { transform: scale(1.05); }

/* Voci di menu: sottolineatura più sottile e morbida */
.elementor-nav-menu--main .elementor-item { transition: color .3s ease, opacity .3s ease; }

/* Comparsa allo scroll (attiva solo se c'è JS e l'utente non ha chiesto meno animazioni) */
@media (prefers-reduced-motion: no-preference) {
  .tp-js .tp-reveal { opacity: 0; transform: translate3d(0, 28px, 0);
    transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--tp-d, 0s); }
  .tp-js .tp-reveal.tp-in { opacity: 1; transform: none; }
  body { animation: tp-fade .6s ease both; }
  @keyframes tp-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Campi dei moduli: focus ben visibile */
.elementor-field-group .elementor-field:focus, .wpcf7-form-control:focus {
  outline: none; box-shadow: 0 0 0 1px #FFC64C; transition: box-shadow .25s ease; }

/* Accessibilità: focus da tastiera */
a:focus-visible, button:focus-visible { outline: 2px solid #FFC64C; outline-offset: 3px; }

/* Finestra Candidatura (modulo CF7): era bianca con il pulsante bianco su bianco, invisibile */
.intermarine-modal { background: rgba(0,0,0,.8) !important; backdrop-filter: blur(6px); }
.intermarine-modal__box { background: #0b0b0b !important; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 0 !important;
  font-family: "D-din font", "D-DIN", Sans-serif; max-height: calc(100vh - 40px); overflow: auto; }
.intermarine-modal__close { color: #fff !important; background: transparent !important; border: 0 !important; font-size: 28px !important; line-height: 1; padding: 4px 8px !important; }
.intermarine-modal__close:hover { color: #FFC64C !important; }
.intermarine-modal label { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: 1rem; }
.intermarine-modal input[type=text], .intermarine-modal input[type=email] { width: 100%; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.35); padding: .7rem .8rem; margin-top: .35rem; border-radius: 0; }
.intermarine-modal input[type=file] { color: #ccc; margin-top: .35rem; }
.intermarine-modal .wpcf7-submit { background: transparent !important; color: #fff !important; border: 1px solid #fff !important;
  padding: .8rem 1.6rem; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; border-radius: 0; transition: background-color .3s, color .3s; }
.intermarine-modal .wpcf7-submit:hover { background: #fff !important; color: #000 !important; }
.intermarine-modal .cf-turnstile { margin: .5rem 0 1rem; }

/* Scheda prodotto (template single, contenitore della gallery): aveva altezza minima 100% schermo,
   con poche immagini (es. 2 su IM-NGM 81) restava una fascia vuota prima del footer */
.elementor-element-a2acbf6 { --min-height: 0px !important; min-height: 0 !important; }

/* Footer sempre in fondo alla finestra anche quando la pagina ha poco contenuto (es. Open Positions) */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > * { flex-shrink: 0; }
body > [data-elementor-type="footer"] { margin-top: auto; }

/* Open Positions (template archivio 2689): titolo finiva sotto l'header fisso e attaccato al bordo */
@media (min-width: 768px) {
  .elementor-2689 .elementor-element-75b63442 { padding-top: 70px; padding-left: 43px; padding-right: 43px; }
}

/* Pagine categoria prodotto (Minehunters, Fast Patrol Boats…): il blocco principale era alto almeno quanto lo schermo
   e spingeva il footer fuori vista lasciando una fascia vuota. Ora è alto quanto il contenuto; il footer resta in fondo (body flex). */
.elementor-location-archive > .e-con.e-parent { --min-height: 0px !important; min-height: 0 !important; }

/* ==== Pagine categoria prodotto: riga e descrizione sopra le schede, più equilibrate ==== */
/* riga: come quella del footer (sottile, sfumata ai lati), allineata a descrizione e schede */
.elementor-location-archive .elementor-widget-divider:not(.e-loop-item *) { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
.elementor-location-archive .elementor-widget-divider:not(.e-loop-item *) .elementor-divider { padding: 18px 0 !important; }
.elementor-location-archive .elementor-widget-divider:not(.e-loop-item *) .elementor-divider-separator {
  border-top: 0 !important; height: 1px; width: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22) 20%, rgba(255,255,255,.22) 80%, transparent); }
/* descrizione: meno bianca, misura di lettura comoda, ritmo più arioso */
.elementor-location-archive .elementor-widget-text-editor:not(.e-loop-item *) { width: 100% !important; max-width: 100% !important; margin: 8px 0 44px !important; padding: 0 !important; }
.elementor-location-archive .elementor-widget-text-editor:not(.e-loop-item *) p {
  font-size: clamp(16px, 1.25vw, 19px) !important; line-height: 1.7 !important; font-weight: 300 !important;
  color: rgba(255,255,255,.72) !important; letter-spacing: .01em; max-width: 880px; margin: 0 !important; }
/* Minehunters (template 435): la riga era rientrata di 26 px rispetto a testo e schede */
.elementor-435 .elementor-element-9df04ec { padding-left: 0 !important; padding-right: 0 !important; }

/* ==== Menu laterale (off-canvas a63eb93 nell'header) ==== */
/* scorrimento: un solo contenitore che scorre, fluido col dito, senza trascinare la pagina sotto */
.e-off-canvas__content { overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; height: 100%; }
/* su iPhone/Android 100vh è più alto dello schermo visibile (barre del browser): la parte bassa restava irraggiungibile */
.e-off-canvas, .e-off-canvas__main { height: 100vh; height: 100dvh !important; max-height: 100dvh; }
.e-off-canvas__content { padding-bottom: calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.e-off-canvas nav.elementor-nav-menu--dropdown { overflow: visible !important; max-height: none !important; }
/* voce attiva: niente fascia gialla che copre la scritta, testo giallo con un filo a sinistra */
.e-off-canvas .elementor-nav-menu--dropdown a.elementor-item-active,
.e-off-canvas .elementor-nav-menu--dropdown a.elementor-sub-item-active,
.e-off-canvas .elementor-nav-menu--dropdown a:hover,
.e-off-canvas .elementor-nav-menu--dropdown a:focus { background-color: transparent !important; color: #FFC64C !important; }
.e-off-canvas .elementor-nav-menu--dropdown a.elementor-item-active { box-shadow: inset 3px 0 0 #FFC64C; }
/* telefono e tablet: caratteri più piccoli e voci più compatte, così il menu sta quasi tutto in uno schermo */
@media (max-width: 1024px) {
  .e-off-canvas .elementor-nav-menu--dropdown a.elementor-item,
  .e-off-canvas .elementor-nav-menu--dropdown a.elementor-sub-item { font-size: 21px !important; line-height: 1.25 !important; padding-top: 9px !important; padding-bottom: 9px !important; }
  .e-off-canvas .elementor-nav-menu--dropdown .sub-menu a.elementor-sub-item { font-size: 17px !important; opacity: .85; }
  .e-off-canvas .elementor-element-5bb1b90 img { width: 150px !important; max-width: 150px !important; height: auto !important; }
  .e-off-canvas .elementor-element-5bb1b90 { margin: 34px 0 26px !important; }
  /* la X sulla stessa riga di «Company», a destra */
  .e-off-canvas .elementor-element-c892bdd { margin-bottom: -40px !important; position: relative; top: 15px; z-index: 5; }
  /* il riquadro della X non deve coprire la riga: cliccabile solo l'icona */
  .e-off-canvas .elementor-element-c892bdd, .e-off-canvas .elementor-element-c892bdd .elementor-widget-container,
  .e-off-canvas .elementor-element-c892bdd .elementor-icon-wrapper { pointer-events: none; }
  .e-off-canvas .elementor-element-c892bdd a.elementor-icon { pointer-events: auto; }
  .e-off-canvas .elementor-element-c4e17a5 .elementor-heading-title { font-size: 21px !important; }
  .e-off-canvas .elementor-element-46aa111 .elementor-button { font-size: 17px !important; }
}
/* pulsante «Contattaci» in fondo al menu laterale: tolto su richiesta di Massimiliano (29/09/2026) */
.e-off-canvas .elementor-element-46aa111, .e-off-canvas .elementor-element-ce54cc7 { display: none !important; }
/* menu laterale: logo più piccolo e chiusura più rapida (era 1,5 s) */
.e-off-canvas .elementor-element-5bb1b90 img { max-width: 180px; height: auto !important; }
.e-off-canvas__main.animated.reverse { animation-duration: .35s !important; }
/* Card News/Press (widget Posts): la foto è centrata con translate(-50%,-50%); lo zoom deve mantenere il centraggio
   (prima lo zoom generico toglieva il translate e la foto finiva nell'angolo) */
.elementor-posts .elementor-post__thumbnail img { transform: translate(-50%, -50%) scale(1.01) !important; transform-origin: center center;
  filter: brightness(.88); will-change: transform;
  transition: transform 1.6s cubic-bezier(.16,1,.3,1), filter .8s ease !important; }
.elementor-posts .elementor-post:hover .elementor-post__thumbnail img { transform: translate(-50%, -50%) scale(1.06) !important; filter: brightness(1); }
/* filo giallo che si allunga sotto la foto, come nelle schede prodotto */
.elementor-posts .elementor-post__thumbnail__link { position: relative; }
.elementor-posts .elementor-post__thumbnail__link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #FFC64C;
  transition: width .9s cubic-bezier(.16,1,.3,1); z-index: 2; }
.elementor-posts .elementor-post:hover .elementor-post__thumbnail__link::after { width: 100%; }

/* Scorrimento infinito (News, Press): indicatore sotto l'ultima fila finché ci sono altre notizie da caricare */
.tp-more { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 46px 0 10px; color: rgba(255,255,255,.6);
  font-family: "D-din font", "D-DIN", Sans-serif; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.tp-more[hidden] { display: none; }
.tp-more__bar { position: relative; width: 160px; height: 1px; background: rgba(255,255,255,.18); overflow: hidden; }
.tp-more__bar::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: #FFC64C; animation: tp-more 1.6s cubic-bezier(.65,0,.35,1) infinite; }
.tp-more.is-loading .tp-more__bar::after { animation-duration: .9s; }
@keyframes tp-more { to { left: 100%; } }
.elementor-widget-posts .e-load-more-spinner { display: none !important; }
/* Pagina News (archivio 879): titolo nascosto sotto l'header fisso e spazio eccessivo prima delle notizie */
@media (min-width: 1025px) {
  .elementor-879 .elementor-element-939f8c1 { margin-top: 150px !important; padding-left: 43px !important; padding-right: 43px !important; }
}
.elementor-879 .elementor-element-3f950e3c { margin-bottom: 0 !important; }
.elementor-879 .elementor-element-4f8e5875 { margin-top: 12px !important; }
@media (max-width: 767px) { .elementor-879 .elementor-element-4f8e5875 { margin-top: 8px !important; } }

/* ==== Pagine «Company» (Mission 1676, Technology 1682, Quality 929): stessa impaginazione e testo più ordinato ==== */
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-1efe44d { --min-height: 0px !important; min-height: 0 !important; }
/* spazio e riga sopra il titolo: riga sottile come nel footer, ai margini del sito */
:is(.elementor-1682, .elementor-929) .elementor-element-1b31f34 .elementor-spacer-inner { height: 56px !important; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-a9cb862 { padding: 0 5vw !important; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-a9cb862 .elementor-divider-separator {
  border-top: 0 !important; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22) 15%, rgba(255,255,255,.22) 85%, transparent); }
/* riga in fondo alla pagina: doppione della riga del footer, tolta */
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-f47ffd2 { display: none !important; }
/* contenuto: stessi margini del sito, colonna di lettura comoda */
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-f591128 { padding: 18px 5vw 90px !important; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-bb9deae { margin-bottom: 28px !important; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-bb9deae .elementor-heading-title { letter-spacing: .01em; line-height: 1.05 !important; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-1b77293 { max-width: 900px !important; width: 100% !important; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-1b77293 :is(p, li) {
  text-align: left !important; font-size: clamp(16px, 1.2vw, 18px) !important; line-height: 1.75 !important; font-weight: 300;
  color: rgba(255,255,255,.78) !important; letter-spacing: .01em; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-1b77293 p { margin: 0 0 1.15em !important; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-1b77293 strong { color: #fff; font-weight: 600; }
/* sottotitoli (paragrafi fatti solo di grassetto, es. «R&D»): piccoli, maiuscoli, gialli */
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-1b77293 p:has(> strong:only-child) {
  font-size: 13px !important; letter-spacing: .22em; text-transform: uppercase; margin: 2.2em 0 .9em !important; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-1b77293 p:has(> strong:only-child) strong { color: #FFC64C; font-weight: 600; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-1b77293 p:first-child:has(> strong:only-child) { margin-top: 0 !important; }
/* elenchi puntati: trattino giallo */
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-1b77293 ul { list-style: none; padding-left: 0; margin: 0 0 1.4em !important; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-1b77293 li { position: relative; padding-left: 26px; margin-bottom: .55em; }
:is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-1b77293 li::before { content: ""; position: absolute; left: 0; top: .85em; width: 12px; height: 1px; background: #FFC64C; }
@media (max-width: 767px) {
  :is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-f591128 { padding: 10px 20px 60px !important; }
  :is(.elementor-1676, .elementor-1682, .elementor-929) .elementor-element-a9cb862 { padding: 0 20px !important; }
}
