/*
Theme Name: Voltolini (Twenty Twenty-Four)
Theme URI: https://www.voltolinisrl.com
Template: twentytwentyfour
Author: Voltolini s.r.l.
Description: Tema figlio di Twenty Twenty-Four per Voltolini s.r.l. – Saldogas. Tutte le pagine, l'intestazione e il piè di pagina si modificano con l'editor a blocchi di WordPress. Da usare insieme al plugin "Voltolini – Funzioni del sito".
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: voltolini-tt4
*/

/* ---------- Pagine senza spazi tra le sezioni a tutta larghezza ---------- */
.vs-page > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.vs-page { margin-block-start: 0 !important; }
main.vs-main { margin-block-start: 0 !important; }

/* ---------- Intestazione ---------- */
.vs-topbar { background: var(--wp--preset--color--accent-3); color: #c9d4e8; font-size: .85rem; padding-top: 8px !important; padding-bottom: 8px !important; }
.vs-topbar p { margin: 0; }
.vs-topbar a { color: #fff; text-decoration: none; }
.vs-topbar a:hover { color: #ffb48a; }
.vs-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--wp--preset--color--accent-4); padding-top: 14px !important; padding-bottom: 14px !important; }
body.admin-bar .vs-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .vs-header { top: 46px; } }
.vs-header .wp-block-navigation { font-weight: 600; font-size: .95rem; gap: 6px 22px; }
.vs-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }
.vs-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--accent); }

/* ---------- Sezioni ---------- */
.vs-section { padding-top: clamp(56px, 8vw, 96px) !important; padding-bottom: clamp(56px, 8vw, 96px) !important; }
.vs-section--tight { padding-top: clamp(40px, 5vw, 60px) !important; padding-bottom: clamp(40px, 5vw, 60px) !important; }
.vs-head { text-align: center; }
.vs-eyebrow { font-size: .8rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--wp--preset--color--accent-2); margin-bottom: .4em !important; }
.vs-lead { font-size: 1.15rem; color: var(--wp--preset--color--contrast-2); }

/* ---------- Hero (blocco Copertina) ---------- */
.vs-hero { padding-top: clamp(70px, 10vw, 120px) !important; padding-bottom: clamp(70px, 10vw, 120px) !important; }
.vs-hero .wp-block-cover__inner-container { max-width: 1200px; width: 100%; }
.vs-hero h1, .vs-hero h2 { color: #fff; max-width: 820px; }
.vs-hero p { color: #d6e0f2; max-width: 680px; font-size: 1.15rem; }
.vs-hero .vs-eyebrow { color: #ffb48a; }
.vs-hero--page h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Stili blocco (selezionabili nell'editor) ---------- */
.is-style-vs-card { background: #fff; border: 1px solid var(--wp--preset--color--accent-4); border-radius: 16px; padding: 26px !important; height: 100%; transition: transform .2s, box-shadow .2s; }
.is-style-vs-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -12px rgba(10,29,61,.25); }
.is-style-vs-card > .wp-block-image:first-child { margin: -26px -26px 18px; }
.is-style-vs-card > .wp-block-image:first-child img { border-radius: 16px 16px 0 0; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.is-style-vs-card h3 { font-size: 1.2rem; margin-top: 0; }
.is-style-vs-card p { color: var(--wp--preset--color--contrast-2); font-size: .97rem; }
.is-style-vs-panel { background: #fff; border: 1px solid var(--wp--preset--color--accent-4); border-radius: 18px; padding: 34px !important; box-shadow: 0 10px 30px -12px rgba(10,29,61,.25); }

.is-style-vs-check { list-style: none; padding-left: 0 !important; }
.is-style-vs-check li { position: relative; padding-left: 30px; margin-bottom: .5em; }
.is-style-vs-check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; background: var(--wp--preset--gradient--brand, #f26a2e) ; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5L20 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5L20 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

.wp-block-button.is-style-vs-accent .wp-block-button__link { background: var(--wp--preset--gradient--brand); color: #fff; box-shadow: 0 8px 22px -8px rgba(215,38,43,.6); }
.wp-block-button.is-style-vs-accent .wp-block-button__link:hover { filter: brightness(1.05); color: #fff; }
.wp-block-button.is-style-vs-light .wp-block-button__link { background: #fff; color: var(--wp--preset--color--accent); }
.wp-block-button.is-style-outline .wp-block-button__link { border-color: currentColor; }
.vs-hero .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; }

.wp-block-image.is-style-vs-rounded img { border-radius: 18px; box-shadow: 0 10px 30px -12px rgba(10,29,61,.25); }

/* ---------- Numeri ---------- */
.vs-stats { margin-top: -50px !important; position: relative; z-index: 2; background: #fff; border: 1px solid var(--wp--preset--color--accent-4); border-radius: 16px; box-shadow: 0 10px 30px -12px rgba(10,29,61,.25); padding: 22px 26px !important; }
.vs-stats p { margin: 0; color: var(--wp--preset--color--contrast-2); font-size: .92rem; }
.vs-stats strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--wp--preset--color--accent); letter-spacing: -.03em; }

/* ---------- Marchi ---------- */
.vs-brands .wp-block-column { background: #fff; border: 1px solid var(--wp--preset--color--accent-4); border-radius: 12px; min-height: 92px; display: flex; align-items: center; justify-content: center; padding: 12px 16px; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.vs-brands .wp-block-column:hover { filter: none; opacity: 1; }
.vs-brands figure { margin: 0 !important; }
.vs-brands img { max-height: 58px; width: auto !important; object-fit: contain; }
.vs-brands p { margin: 0; font-weight: 800; color: var(--wp--preset--color--accent-3); }
@media (max-width: 781px) { .vs-brands { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---------- Fascia contatti e piè di pagina ---------- */
.vs-cta { background: var(--wp--preset--gradient--brand); color: #fff; padding-top: 48px !important; padding-bottom: 48px !important; }
.vs-cta h2 { color: #fff; margin: 0 0 .2em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.vs-cta p { margin: 0; color: #fff3ea; }
.vs-cta .wp-block-button__link { background: var(--wp--preset--color--accent-3); color: #fff; }
.vs-cta .is-style-vs-light .wp-block-button__link { background: #fff; color: var(--wp--preset--color--accent); }
.vs-footer { font-size: .94rem; padding-top: 60px !important; padding-bottom: 26px !important; }
.vs-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; }
.vs-footer p, .vs-footer li { color: #b8c5dc; }
.vs-footer a { color: #dbe4f4; text-decoration: none; }
.vs-footer a:hover { color: #ffb48a; }
.vs-footer ul { list-style: none; padding-left: 0; }
.vs-footer ul li { margin-bottom: 8px; }
.vs-footer .wp-block-site-logo img { background: #fff; padding: 10px 14px; border-radius: 10px; box-sizing: content-box; }
.vs-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-top: 30px !important; font-size: .85rem; }
