/*
Theme Name: AL Impianti Child
Theme URI: https://www.alimpianti.eu
Description: Child theme di Hello Elementor per AL Impianti
Author: LALAB
Author URI: https://lalabgrafica.it
Template: hello-elementor
Version: 1.0.1
Text Domain: alimpianti-child
*/

/* =========================================================
   AL IMPIANTI - CSS custom
   Colori e font principali sono in Elementor > Impostazioni sito.
   Qui solo piccoli ritocchi che Elementor non gestisce.
   ========================================================= */

:root {
	--al-blu: #1F1B37;
	--al-rosso: #E10A17;
	--al-grigio-testo: #C9C6DA;
}

html { scroll-behavior: smooth; }
body { background: var(--al-blu); }
::selection { background: var(--al-rosso); color: #fff; }

/* Header sticky: ombra quando si scorre */
.al-header.elementor-sticky--effects { box-shadow: 0 8px 24px rgba(10, 8, 25, .45); }
.al-header .elementor-nav-menu--dropdown { border-top: 2px solid var(--al-rosso); }

/* Footer: liste link pulite */
.al-footer-links { list-style: none; margin: 0; padding: 0; }
.al-footer-links li { margin: 0 0 8px; }
.al-footer a, .al-footer-links a { color: var(--al-grigio-testo); text-decoration: none; transition: color .2s; }
.al-footer a:hover, .al-footer-links a:hover { color: #fff; }

/* Newsletter a pillola */
.al-newsletter-form .elementor-field-group-email { padding-right: 0 !important; }
.al-newsletter-form input[type="email"]::placeholder { color: #fff; opacity: .85; }
.al-footer .elementor-widget-text-editor a { text-decoration: none; }
.al-newsletter-form .elementor-field-type-acceptance a { color: #fff; text-decoration: underline; }
@media (max-width: 767px) {
	.al-newsletter-form input[type="email"] { border-radius: 30px !important; border-width: 2px !important; text-align: center; }
	.al-newsletter-form .elementor-button { border-radius: 30px !important; }
}

/* Card servizi: linea rossa in alto e hover */
.al-card { transition: transform .25s ease, border-color .25s ease; }
.al-card:hover { transform: translateY(-4px); }

/* Liste con trattino rosso */
ul.al-list { list-style: none; padding: 0; margin: 0; }
ul.al-list li { position: relative; padding-left: 22px; margin-bottom: 10px; }
ul.al-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: currentColor; }
.al-list-red li::before { background: var(--al-rosso) !important; }

/* Testi su fondo rosso: link bianchi */
.al-bg-rosso .elementor-widget-text-editor a { color: #fff; text-decoration: underline; }

/* Numeri grandi */
.al-num .elementor-counter-number-wrapper { line-height: 1; }

/* Immagine che sborda dalla fascia (Chi siamo / Home) */
@media (min-width: 1025px) {
	.al-img-overlap { margin-top: -120px; position: relative; z-index: 2; }
	.al-img-overlap-bottom { margin-bottom: -120px; position: relative; z-index: 2; }
}

/* Video gallery: icona play sopra le anteprime */
.al-video-thumb { position: relative; }
.al-video-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: rgba(225, 10, 23, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/34px no-repeat; pointer-events: none; }

/* Form contatti */
.al-form-contatti .elementor-field-textual { border-radius: 0 !important; }
.al-form-contatti .elementor-field-type-acceptance a { color: #fff; text-decoration: underline; }

/* Accessibilita: focus visibile */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--al-rosso); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.al-card, .al-card:hover { transition: none; transform: none; }
}

/* Bottoni sempre su una riga (desktop) */
@media (min-width: 768px) { .elementor-button { white-space: nowrap; } }
