/* Sezioni della home (includes/home.php). Colori e caratteri del sito: rosso #d60a2e, inchiostro #222529, grigio #f4f4f4, Poppins. */
.eqm-h-sez, .eqm-h-punti { --r: #d60a2e; --ink: #222529; --grigio: #f4f4f4; --riga: #e7e7e7; --testo: #6f7378; font-family: Poppins, sans-serif; color: var(--ink); }
.eqm-h-sez h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.eqm-h-sez p { font-size: 15px; line-height: 1.7; color: var(--testo); margin: 0 0 14px; }
.eqm-h-occhiello { margin: 0 0 8px !important; font-size: 12px !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--r) !important; }
.eqm-h-testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eqm-h-sotto { max-width: 620px; margin: 12px 0 0 !important; }
.eqm-h-link { flex: none; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.eqm-h-link:hover { color: var(--r); }
.eqm-h-btn { margin-top: 8px; }

/* tre fatti sotto l'apertura: schede bianche che salgono sul bordo dell'apertura (Ivan 02/11: «più in evidenza») */
.eqm-h-punti { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -56px; }
.eqm-h-punti > div { padding: 28px 30px 30px; background: #fff; border-top: 3px solid var(--r); box-shadow: 0 18px 40px -16px rgba(23, 24, 27, .28); }
.eqm-h-punti strong { display: block; font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.eqm-h-punti span { display: block; font-size: 14px; line-height: 1.65; color: var(--testo); }

/* griglie di cassoni e selle */
.eqm-h-griglia { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.eqm-h-griglia li { margin: 0; }
.eqm-h-cassone, .eqm-h-sella { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.eqm-h-foto { position: relative; display: block; aspect-ratio: 1; background: var(--grigio); overflow: hidden; }
.eqm-h-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .5s ease; }
.eqm-h-sella .eqm-h-foto { background: #fff; outline: 1px solid var(--riga); outline-offset: -1px; }
.eqm-h-foto .eqm-h-aperto { opacity: 0; }
.eqm-h-cassone:hover .eqm-h-foto img:first-child { opacity: 0; }
.eqm-h-cassone:hover .eqm-h-aperto { opacity: 1; }
.eqm-h-sella:hover .eqm-h-foto img { transform: scale(1.04); }
.eqm-h-nome { display: block; margin-top: 16px; font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.eqm-h-selle { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--r); }
.eqm-h-prezzo { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.eqm-h-prezzo small { font-size: 11px; font-weight: 500; color: var(--testo); }
.eqm-h-frase { display: block; margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--testo); }
/* pulsante vero in fondo a ogni scheda (Ivan 02/11: «mettere i tasti qui»), allineati anche con frasi di lunghezza diversa */
.eqm-h-vai { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; padding: 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.eqm-h-frase { margin-bottom: 16px; }
.eqm-h-cassone:hover .eqm-h-vai { background: var(--r); border-color: var(--r); color: #fff; }
.eqm-h-sella .eqm-h-nome { font-size: 14px; letter-spacing: .02em; font-weight: 600; }
.eqm-h-tipi { display: flex; gap: 10px; margin: 28px 0 0 !important; }

/* configuratore */
.eqm-h-configura { display: grid; grid-template-columns: 1fr 1fr; background: var(--grigio); }
.eqm-h-conf-foto { display: flex; align-items: center; justify-content: center; padding: 24px; }
.eqm-h-conf-foto img { display: block; width: 100%; max-width: 440px; height: auto; }
.eqm-h-conf-video { padding: 0; align-self: stretch; }
.eqm-h-conf-video { align-self: center; }
.eqm-h-conf-video video, .eqm-h-conf-video .eqm-video { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #1b1b1c; } /* quadrato pieno, come l'ha fatto Veronica */
.eqm-h-conf-testo { padding: 56px 56px 56px 24px; align-self: center; }
.eqm-h-conf-testo h2 { margin-bottom: 14px; }
.eqm-h-colori { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 22px !important; }
.eqm-h-colori span { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.eqm-h-colori small { margin-left: 8px; font-size: 12px; color: var(--testo); }
.eqm-h-passi { list-style: none; counter-reset: passo; margin: 0 0 26px; padding: 0; }
.eqm-h-passi li { counter-increment: passo; position: relative; padding: 0 0 14px 44px; font-size: 14px; line-height: 1.6; color: var(--testo); }
.eqm-h-passi li::before { content: counter(passo); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; line-height: 28px; text-align: center; }
.eqm-h-passi strong { color: var(--ink); font-weight: 600; }

/* banner largo del configuratore (05/11/2026): sul computer il video a tutta larghezza e sotto testo e passi affiancati; sul telefono il quadrato */
.eqm-h-conf-largo { grid-template-columns: 1fr; }
.eqm-h-conf-largo .eqm-h-conf-video video, .eqm-h-conf-largo .eqm-h-conf-video .eqm-video { aspect-ratio: 1680 / 828; background: #e9e4dc; }
.eqm-h-conf-largo .eqm-h-conf-testo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 48px 56px 52px; }
.eqm-h-conf-largo .eqm-h-colori { margin-bottom: 0 !important; }
.eqm-h-conf-largo .eqm-h-conf-azione { padding-top: 34px; }

/* due video per banner (05/11/2026): sul computer il largo, sul telefono lo stretto; le proporzioni sono scritte in ogni elemento */
video.eqm-video.eqm-video-stretto { display: none !important; }
@media (max-width: 767px) {
	video.eqm-video.eqm-video-largo { display: none !important; }
	video.eqm-video.eqm-video-stretto { display: block !important; }
}

/* banner delle selle in testa alla sezione (05/11/2026) */
.eqm-h-selle-banner { display: block; margin-bottom: 40px; }
.eqm-h-selle-banner video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 625; object-fit: cover; background: #e9e4dc; }

/* foto + testo */
.eqm-h-diviso { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eqm-h-diviso-foto { aspect-ratio: 4 / 3; overflow: hidden; background: var(--grigio); }
.eqm-h-diviso-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eqm-h-diviso-inverso .eqm-h-diviso-foto { order: 2; }
.eqm-h-diviso-testo h2 { margin-bottom: 16px; }
.eqm-h-indirizzo { font-size: 17px !important; line-height: 1.5 !important; color: var(--ink) !important; font-weight: 500; }
.eqm-h-orari { font-weight: 600; color: var(--r) !important; }
.eqm-h-azioni { display: flex; flex-wrap: wrap; gap: 10px; }
.eqm-h-azioni .eqm-h-btn { margin-top: 0; }

@media (max-width: 991px) {
	.eqm-h-griglia { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
	.eqm-h-configura, .eqm-h-diviso { grid-template-columns: 1fr; }
	.eqm-h-conf-testo { padding: 8px 24px 36px; }
	.eqm-h-diviso { gap: 24px; padding-bottom: 8px; }
	.eqm-h-diviso-inverso .eqm-h-diviso-foto { order: 0; }
}
@media (max-width: 767px) {
	.eqm-h-punti { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
	.eqm-h-punti > div { padding: 18px 20px 20px; }
	.eqm-h-punti strong { font-size: 17px; }
	.eqm-h-testa { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
	.eqm-h-nome { font-size: 14px; margin-top: 12px; }
	.eqm-h-frase { font-size: 12px; }
	.eqm-h-vai-lungo { display: none; } /* su due colonne strette basta «Configura» */
	.eqm-h-conf-foto { padding: 16px 16px 0; }
	.eqm-h-conf-video { padding: 0; }
	.eqm-h-conf-foto img { max-width: 300px; }
	.eqm-h-conf-testo { padding: 8px 16px 28px; }
	.eqm-h-tipi .btn { flex: 1; }
}
@media (max-width: 991px) {
	.eqm-h-conf-largo .eqm-h-conf-testo { grid-template-columns: 1fr; gap: 0; padding: 32px 24px 36px; }
	.eqm-h-conf-largo .eqm-h-colori { margin-bottom: 22px !important; }
	.eqm-h-conf-largo .eqm-h-conf-azione { padding-top: 0; }
}
@media (max-width: 767px) {
	.eqm-h-conf-largo .eqm-h-conf-video video, .eqm-h-conf-largo .eqm-h-conf-video .eqm-video { aspect-ratio: 1; background: #1b1b1c; }
	.eqm-h-conf-largo .eqm-h-conf-testo { padding: 8px 16px 28px; }
	.eqm-h-selle-banner { margin-bottom: 28px; }
	.eqm-h-selle-banner video { aspect-ratio: 780 / 1000; }
}
@media (prefers-reduced-motion: reduce) { .eqm-h-foto img, .eqm-h-vai { transition: none; } }

/* ===== apertura: slider con testo su fondo scuro e foto vera ===== */
/* la sezione a tutta larghezza di Porto ha 20 px di margine negativo per lato: la pagina scorreva di lato */
.elementor-element-eqmha01 > .elementor-container { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
.eqm-ap { --r: #d60a2e; --notte: #17181b; position: relative; overflow: hidden; background: var(--notte); color: #fff; font-family: Poppins, sans-serif; }
.eqm-ap-binario { position: relative; height: clamp(480px, calc(100vh - 380px), 640px); } /* testata + apertura stanno nello schermo */
.eqm-ap-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(20px, 1fr) minmax(0, calc((var(--porto-container-width, 1400px) - 20px) * .55)) minmax(0, calc((var(--porto-container-width, 1400px) - 20px) * .45)) minmax(0, 1fr); opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.eqm-ap-slide.attiva { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; z-index: 1; }
/* testo nella colonna del contenitore del tema (stesso bordo del logo a ogni larghezza), foto fino al bordo destro */
.eqm-ap-testo { grid-column: 2; position: relative; z-index: 2; align-self: center; padding: 0 56px 120px 0; }
.eqm-ap-occhiello { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.eqm-ap-occhiello::before { content: ""; width: 34px; height: 2px; background: var(--r); }
.eqm-ap-titolo { margin: 0 0 20px; max-width: 13em; font-size: clamp(34px, 3.6vw, 54px) !important; line-height: 1.08 !important; font-weight: 600 !important; letter-spacing: -.02em; color: #fff !important; }
.eqm-ap-frase { max-width: 32em; margin: 0 0 32px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .72); }
.eqm-ap-btn { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.eqm-ap-b { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.eqm-ap-b-primary { background: var(--r); color: #fff !important; }
.eqm-ap-b-primary:hover { background: #b70826; }
.eqm-ap-b-chiaro { border: 1px solid rgba(255, 255, 255, .45); color: #fff !important; }
.eqm-ap-b-chiaro:hover { border-color: #fff; background: #fff; color: var(--notte) !important; }
.eqm-ap-foto { grid-column: 3 / 5; position: relative; overflow: hidden; }
.eqm-ap-foto::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; z-index: 1; background: linear-gradient(90deg, var(--notte), rgba(23, 24, 27, 0)); }
.eqm-ap-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.eqm-ap-slide.attiva .eqm-ap-foto img { transform: scale(1); }
/* il testo entra dal basso a ogni cambio */
.eqm-ap-testo > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.eqm-ap-slide.attiva .eqm-ap-testo > * { opacity: 1; transform: none; }
.eqm-ap-slide.attiva .eqm-ap-titolo { transition-delay: .08s; }
.eqm-ap-slide.attiva .eqm-ap-frase { transition-delay: .16s; }
.eqm-ap-slide.attiva .eqm-ap-btn { transition-delay: .24s; }
/* comandi */
.eqm-ap-comandi { position: absolute; z-index: 3; left: calc((100% - (var(--porto-container-width, 1400px) - 20px)) / 2 + (var(--porto-container-width, 1400px) - 20px) * .55 - 56px); transform: translateX(-100%); bottom: 90px; /* sopra le schede dei tre punti, che salgono di 56 px */ display: flex; align-items: center; gap: 22px; }
.eqm-ap-conta { font-size: 13px; letter-spacing: .12em; color: rgba(255, 255, 255, .55); min-width: 64px; }
.eqm-ap-conta b { color: #fff; font-weight: 600; }
.eqm-ap-pallini { display: flex; gap: 6px; }
.eqm-ap-pallino { position: relative; width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.eqm-ap-pallino i { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.eqm-ap-pallino i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.eqm-ap-pallino.attivo i::after { transform: scaleX(1); }
.eqm-ap.gira .eqm-ap-pallino.attivo i::after { transform: scaleX(0); animation: eqm-ap-avanza var(--durata, 7s) linear forwards; }
.eqm-ap.fermo .eqm-ap-pallino.attivo i::after { animation-play-state: paused; }
@keyframes eqm-ap-avanza { to { transform: scaleX(1); } }
.eqm-ap-freccia { position: relative; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: none; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.eqm-ap-freccia::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; transform: translate(-65%, -50%) rotate(45deg); }
.eqm-ap-prec::after { transform: translate(-35%, -50%) rotate(-135deg); }
.eqm-ap-freccia:hover { background: #fff; border-color: #fff; }
.eqm-ap-freccia:hover::after { border-color: var(--notte); }
.eqm-ap :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 991px) {
	.eqm-ap-slide { grid-template-columns: 1fr 1fr; }
	.eqm-ap-testo { grid-column: 1; padding: 0 32px 140px 32px; }
	.eqm-ap-foto { grid-column: 2; }
	.eqm-ap-comandi { left: calc(50% - 32px); }
}
@media (max-width: 767px) {
	.eqm-ap-binario { height: auto; display: grid; }
	.eqm-ap-slide { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column-reverse; }
	.eqm-ap-foto { flex: 1 0 380px; } /* più alta: la foto verticale ritagliata a striscia tagliava il cassone; le slide hanno testi di lunghezza diversa e la foto riempie quello che resta */
	.eqm-ap-foto::before { inset: auto 0 0 0; width: auto; height: 45%; background: linear-gradient(0deg, var(--notte), rgba(23, 24, 27, 0)); }
	.eqm-ap-testo { align-self: stretch; margin-top: -40px; padding: 0 20px 92px; }
	.eqm-ap-occhiello { margin-bottom: 12px; font-size: 11px; }
	.eqm-ap-titolo { font-size: 30px !important; margin-bottom: 14px; }
	.eqm-ap-frase { font-size: 14px; margin-bottom: 22px; }
	.eqm-ap-b { flex: 1 1 auto; justify-content: center; min-height: 48px; padding: 0 16px; font-size: 12px; }
	.eqm-ap-comandi { left: 20px; right: 20px; transform: none; bottom: 26px; gap: 14px; padding-left: 64px; } /* a sinistra resta il posto del pulsante WhatsApp */
	.eqm-ap-pallini { flex: 1; }
	.eqm-ap-pallino { flex: 1; width: auto; }
	.eqm-ap-freccia { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.eqm-ap-slide, .eqm-ap-testo > *, .eqm-ap-foto img { transition: none !important; transform: none !important; }
}

/* Riparazioni: video di Veronica a tutta larghezza (1920×350, sul telefono 780×700) */
.eqm-h-largo > .elementor-container { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
.eqm-h-rip { display: block; }
.eqm-h-rip video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 350; object-fit: cover; background: #e9e4dc; }
@media (max-width: 767px) { .eqm-h-rip video { aspect-ratio: 780 / 700; } }

