/*
 * Hello Theme â€” Minimal Base
 * Blank canvas theme for CMS Page Builder.
 * All design comes from page builder sections â€” this file provides only:
 * reset, base typography, layout utilities, page builder structural CSS,
 * and low-specificity widget defaults via :where().
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: var(--font-sans);
    --accent: #2563eb;
    --text: #1e293b;
    --text-secondary: #64748b;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --border: #e2e8f0;
    --radius: 0.5rem;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --transition: 300ms ease;
    --container-max: 1200px;
    --container-pad: 1rem;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x:clip;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--surface);
    overflow-x: hidden;
}

#scroll-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex: 1;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: color-mix(in srgb, var(--accent) 80%, black); }
a.nav-brand, a.nav-brand:hover { color: inherit; }

/* Scrollbar â€” hidden (native + Locomotive) */
::-webkit-scrollbar { -webkit-appearance: none; width: 0px; }
html { scrollbar-width: none; }
.c-scrollbar { display: none !important; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {margin-bottom: 0;}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* ============================================
   HEADER (PAGE BUILDER)
   ============================================ */
.site-header {
    position: relative;
    z-index: 1000;
}

/* Default header row layout */
.site-header .pb-row {
    align-items: center;
    min-height: 64px;
    flex-wrap: nowrap;
}

/* Transparent-scroll variant */
.site-header.header-transparent-scroll {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.header-transparent-scroll.scrolled {
    background: var(--header-sticky-bg, #ffffff);
    box-shadow: var(--shadow-sm);
}

/* Sticky variant */
.site-header.header-sticky {
    position: sticky;
    top: 0;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

/* Header template sub-components */
.pp-topbar { font-size: 0.85rem; }
.pp-header-socials { display: flex; gap: 0.5rem; align-items: center; }
.pp-hs-link { display: flex; align-items: center; }
.pp-header-spacer { flex: 1; }

.footer-contacts-block p {
    text-decoration: none !important;
}

/* â”€â”€ Header Nav default styles (overridable by page builder) â”€â”€ */
:where(.site-header) .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
:where(.site-header) .nav-links > li { position: relative; }

:where(.site-header) .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
:where(.site-header .nav-link) .nav-chevron {
    transition: transform var(--transition);
    transform: rotate(90deg) translateX(1px) !important;
}

/* Dropdown */
:where(.site-header .dropdown-menu) {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 200px;
}
.site-header .dropdown-menu {
    position: absolute;
    top: 95%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all var(--transition);
    z-index: 100;
}
.site-header .nav-links > li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-header .dropdown-menu .sub-menu { display: flex; flex-direction: column; }
.site-header .dropdown-menu .nav-item a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text, #1e293b);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background var(--transition);
}
.site-header .dropdown-menu .nav-item a:hover {
    background: var(--surface-alt, #f8fafc);
}

/* Mobile hamburger + menu â€” all rules in menu-enhanced.css
   style.css only provides the responsive breakpoint as fallback */
@media (max-width: 1280px) {
    :where(.site-header) .nav-links { display: none; }
    :where(.site-header) .mobile-menu-btn { display: flex; }
}

/* Nav CTA styles */
.nav-cta-ghost {
    background: transparent;
    border: 1px solid currentColor;
    padding: 0.4em 1em;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-cta-link { font-weight: 600; }



.col-text ul {
    padding-left: 1.25rem;
    list-style: none;
}
.col-text ul li {
    position: relative;
    padding-left: 0.25rem;
}
.col-text ul li::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.45em;
    width: 0.55em;
    height: 0.55em;
    background: var(--accent, #db0812);
}

/* ============================================
   FOOTER (PAGE BUILDER)
   ============================================ */
.site-footer {
    position: relative;
}

/* Footer menu block */
.footer-menu-block .footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}
.footer-menu-block .footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem 2rem !important;
    justify-content: flex-end;
}
.footer-menu-block .footer-links-list a {
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.footer-menu-block .footer-links-list a:hover {
    opacity: 0.7;
}

/* ============================================
   HERO CAROUSEL (homepage slider)
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    min-height: 50vh;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
}

.hero-carousel-slide.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

/* Content alignment */
.hero-align-top { align-items: flex-start; padding-top: 2rem; }
.hero-align-center { align-items: center; }
.hero-align-bottom { align-items: flex-end; padding-bottom: 2rem; }

/* Content layer */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 3rem 0;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Background layer */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

div.hero-slide-bg {
    background-size: cover;
    background-position: center;
}

video.hero-slide-bg {
    object-fit: cover;
}

/* Overlay */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Single slide â€” no transition needed */
.hero-carousel-slide:only-child {
    position: relative;
    opacity: 1;
}

/* ============================================
   CUSTOM BUTTONS (used by button template)
   ============================================ */
:where(.sec-templates) .custom-button {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    border-radius: 0;
    background: #db0812;
    color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: all var(--transition);
    justify-content: space-between;
}
:where(.sec-templates) .custom-button:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
:where(.sec-templates) .custom-button span { color: currentColor; }
:where(.sec-templates) .custom-button i { color: inherit; }
:where(.sec-templates) .custom-button svg {width: 11px;height: 11px;fill: currentColor;color: inherit;}
:where(.sec-templates) .custom-button svg path,
:where(.sec-templates) .custom-button svg polygon,
:where(.sec-templates) .custom-button svg circle,
:where(.sec-templates) .custom-button svg rect { fill: currentColor; }
:where(.sec-templates) .custom-button .btn-icon-img { height: 1em; width: auto; object-fit: contain; }
:where(.sec-templates) .custom-button .btn-icon-img.btn-icon-sm { height: 0.75em; }
:where(.sec-templates) .custom-button .btn-icon-img.btn-icon-md { height: 1em; }
:where(.sec-templates) .custom-button .btn-icon-img.btn-icon-lg { height: 1.4em; }
:where(.sec-templates) .custom-button .btn-icon-img.btn-icon-xl { height: 1.8em; }
:where(.sec-templates) .custom-button .cls-1 { fill: currentColor; stroke-miterlimit: 10; stroke-width: 8px; }
:where(.sec-templates) .custom-button .cls-2 { fill: currentColor; }

.custom-button.primary,
.btn-lg.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.custom-button.primary:hover,
.btn-lg.primary:hover {
    background: color-mix(in srgb, var(--accent) 80%, black);
}

.btn-lg { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75em 1.5em; font-size: 1.05rem; border-radius: var(--radius); border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-lg svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm { padding: 0.4em 0.8em; font-size: 0.875rem; border-radius: var(--radius); border: none; cursor: pointer; }
.btn-sm.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-lg.ghost { background: transparent; border: 1px solid currentColor; color: inherit; padding: 0.75em 1.5em; font-size: 1.05rem; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); }
.btn-lg.ghost:hover { background: rgba(255,255,255,0.15); }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.scroll-top svg { width: 20px; height: 20px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================================
   PAGE BUILDER â€” STRUCTURAL
   ============================================ */
.section-container {position: relative; }

/* Shape Dividers */
.pp-shape-divider {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}
.pp-shape-divider svg {
    display: block;
    width: calc(100% + 2px);
    height: 100%;
    position: relative;
    left: -1px;
}
.pp-shape-divider--top { top: 0; }
.pp-shape-divider--bottom { bottom: 0; transform: rotate(180deg); }
.pp-shape-divider--flip svg { transform: scaleX(-1); }

.pb-row {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    gap: var(--pb-gap, 0px);
}
:where(.pb-row + .pb-row) {
    margin-top: var(--pb-row-gap, 0);
}

.pb-col {
    position: relative;
    min-height: 1px;
}

@media (max-width: 991px) {
    .pb-stack-tablet > .pb-col { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 767px) {
    .pb-stack-mobile > .pb-col { flex: 0 0 100%; max-width: 100%; }
}

/* ============================================
   PAGE BUILDER â€” TEMPLATE WIDGET DEFAULTS
   Low specificity via :where() so page builder
   inline styles and live editor always override.
   ============================================ */
:where(.sec-templates) img { max-width: 100%; height: auto; }
:where(.sec-templates) .tpl-text { word-wrap: break-word; overflow-wrap: break-word; }
:where(.sec-templates) .tpl-text p:last-child { margin-bottom: 0; }
:where(.sec-templates) .tpl-image img, :where(.sec-templates) .template-image img { display: block; width: 100%; height: auto; }


/* `<picture>` is display:inline by default → un div container con width esplicita
   può avere layout imprevedibile perché l'img al 100% calcola rispetto a picture.
   Forziamo picture a block + width 100% così eredita correttamente la width del
   container `.template-image` (che è impostata da max_width dei settings). */
:where(.sec-templates) .tpl-image picture, :where(.sec-templates) .template-image picture { display: block; width: 100%; }


/* Video */
:where(.sec-templates) .tpl-video iframe,
:where(.sec-templates) .tpl-video video { max-width: 100%; display: block; }

/* Gallery Grid */
:where(.sec-templates) .gallery-grid .grid-container {
    display: flex; flex-wrap: wrap; gap: var(--gallery-gap, 1rem); width: 100%;
}
:where(.sec-templates) .gallery-grid .grid-container--columns {
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
    gap: var(--gallery-gap, 8px);
}
:where(.sec-templates) .gallery-grid .grid-container--columns .grid-item { width: auto; height: 18rem; }
:where(.sec-templates) .gallery-grid .grid-item { position: relative; height: 18rem; transition: all 0.3s ease; overflow: hidden; border-radius: var(--gallery-radius, 0); }
:where(.sec-templates) .gallery-grid .grid-item.width-100 { width: 100%; height: 28rem; }
:where(.sec-templates) .gallery-grid .grid-item.width-50 { width: calc(50% - var(--gallery-gap, 1rem) / 2); }
:where(.sec-templates) .gallery-grid .grid-item.width-75 { width: calc(75% - var(--gallery-gap, 1rem) * 3 / 4); }
:where(.sec-templates) .gallery-grid .grid-item.width-33 { width: calc(100% / 3 - var(--gallery-gap, 1rem) * 2 / 3); }
:where(.sec-templates) .gallery-grid .grid-item.width-25 { width: calc(25% - var(--gallery-gap, 1rem) / 4); }
/* Mosaic: CSS Grid â€” 1 big (2x2) + 4 small (1x1 each), alternating sides */
:where(.sec-templates) .gallery-grid .grid-container--mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: var(--gallery-gap, 1rem);
    width: 100%;
    margin-bottom: var(--gallery-gap, 1rem);
}
:where(.sec-templates) .gallery-grid .grid-container--mosaic:last-child { margin-bottom: 0; }
:where(.sec-templates) .gallery-grid .grid-container--mosaic .grid-item--big {
    grid-column: 1 / 3; grid-row: 1 / 3; height: auto; min-height: 28rem;
}
:where(.sec-templates) .gallery-grid .grid-container--mosaic .grid-item--small {
    height: auto; min-height: 13rem;
}
/* Alt (odd rows): big image on the right */
:where(.sec-templates) .gallery-grid .grid-container--mosaic-alt .grid-item--big {
    grid-column: 3 / 5; grid-row: 1 / 3;
}
:where(.sec-templates) .gallery-grid .grid-container--mosaic-alt .grid-item--small:nth-child(2) { grid-column: 1; grid-row: 1; }
:where(.sec-templates) .gallery-grid .grid-container--mosaic-alt .grid-item--small:nth-child(3) { grid-column: 2; grid-row: 1; }
:where(.sec-templates) .gallery-grid .grid-container--mosaic-alt .grid-item--small:nth-child(4) { grid-column: 1; grid-row: 2; }
:where(.sec-templates) .gallery-grid .grid-container--mosaic-alt .grid-item--small:nth-child(5) { grid-column: 2; grid-row: 2; }
@media (max-width: 767px) {
    :where(.sec-templates) .gallery-grid .grid-container--mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    :where(.sec-templates) .gallery-grid .grid-container--mosaic .grid-item--big {
        grid-column: 1 / -1; grid-row: auto; min-height: 18rem;
    }
    :where(.sec-templates) .gallery-grid .grid-container--mosaic-alt .grid-item--big {
        grid-column: 1 / -1; grid-row: auto;
    }
    :where(.sec-templates) .gallery-grid .grid-container--mosaic-alt .grid-item--small { grid-column: auto; grid-row: auto; }
    :where(.sec-templates) .gallery-grid .grid-container--mosaic .grid-item--small {
    height: auto;
    min-height: 18rem;
    grid-column: 1 / -1;
}

:where(.form-submit-group .custom-button) {
    min-width: 160px;
    width: 100%;
}

:where(.sec-templates) .custom-button svg {
    width:13px !important;
    height: 13px !important;

}

:where(.sec-templates) .custom-button i {
    font-size: 13px !important;
}
    
}
.gslide-description { display: none !important; }
:where(.sec-templates) .glight-img {
    display: block; height: 100%; width: 100%;
    background-position: center; background-size: cover; background-repeat: no-repeat;
    border-radius: 0; cursor: pointer;
}

/* Gallery Carousel (Splide) */
.gallery-carousel-wrapper { position: relative; width: 100%; }
.gallery-carousel-wrapper .splide__slide img { display: block; }
.gallery-thumbs { margin-top: 8px; }
.gallery-thumbs .splide__slide { opacity: 0.5; transition: opacity 0.2s; }
.gallery-thumbs .splide__slide.is-active { opacity: 1; }
:where(.sec-templates) .navigation-arrow {
    position: absolute; top: 50%; left: 0; right: 0;
    display: flex; justify-content: space-between; padding: 0 1rem;
    transform: translateY(-50%); z-index: 5; pointer-events: none;
}
:where(.sec-templates) .prev-p, :where(.sec-templates) .next-p {
    pointer-events: auto; background: var(--accent); color: #fff;
    padding: 0.3rem 0.8rem; border-radius: var(--radius); cursor: pointer;
    transition: background var(--transition);
}
:where(.sec-templates) .prev-p:hover, :where(.sec-templates) .next-p:hover { background: color-mix(in srgb, var(--accent) 80%, black); }
:where(.sec-templates) .prev-p svg, :where(.sec-templates) .next-p svg { width: 1.2rem; height: 1.2rem; }
:where(.sec-templates) .prev-p svg { transform: rotate(180deg); }

/* Icon List */
:where(.sec-templates) .tpl-icon-list { list-style: none; padding: 0; }
:where(.sec-templates) .tpl-icon-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
:where(.sec-templates) .tpl-icon-list .icon-list-icon { flex-shrink: 0; }
.minimal-list {list-style: none;padding: 0;margin: 0;display: flex;flex-direction: column;gap: 1rem;}
.minimal-list li {display: flex;align-items: flex-start;gap: 2rem;}
.minimal-list .min-svg {flex-shrink: 0;display: flex;align-items: center;margin-top: 10px;justify-content: center;}
.minimal-list.pp-icon-list-inline { flex-direction: row; flex-wrap: wrap; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FORMS â€” Base Styles
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Page form container (dynamic forms) */
.page-form {
    max-width: 100%;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
}
.form-group {
    position: relative;
    margin-bottom: 0;
}
.full-width { grid-column: 1 / -1; }

/* Structured form layout (Section â†’ Row â†’ Column) */
.form-sec-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1rem;
}

/* Labels */
.form-group label,
.template-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    /* color: inherit; */
}

/* Inputs, textareas, selects */
.custom-input,
.template-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.template-form textarea,
.template-form select,
.page-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.page-form textarea,
.page-form select {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.5;
    color: #fff;
    background: transparent;
    border: 1px solid rgb(255 255 255);
    border-radius: 0;
    transition: border-color 0.2s ease;
    appearance: none;
}

/* Focus state */
.custom-input:focus,
.template-form input:not([type="checkbox"]):not([type="radio"]):focus,
.template-form textarea:focus,
.template-form select:focus,
.page-form input:not([type="checkbox"]):not([type="radio"]):focus,
.page-form textarea:focus,
.page-form select:focus {
    outline: none;
    border-color: var(--form-border-focus, rgba(255,255,255,0.8));
    box-shadow: none;
}

/* Placeholder */
.custom-input::placeholder,
.template-form input::placeholder,
.template-form textarea::placeholder,
.page-form input::placeholder,
.page-form textarea::placeholder {
    color: var(--form-placeholder, rgba(255,255,255,0.45));
}

/* Textarea */
.template-form textarea,
.page-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Custom file input */
.custom-file-hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.custom-file-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--form-border, rgb(255 255 255));
    border-radius: 0;
    cursor: pointer;
    overflow: hidden;
}
.custom-file-btn {
    flex-shrink: 0;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: transparent;
    border: none;
    border-right: 1px solid rgb(255 255 255);
    cursor: pointer;
    transition: background 0.2s ease;
}
.custom-file-btn:hover {
    background: rgba(255,255,255,0.08);
}
.custom-file-name {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.9rem;
    color: var(--form-placeholder, rgba(255,255,255,0.45));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-file-input.has-file .custom-file-name {
    color: #fff;
}

/* Select (with custom arrow) */
.template-form select,
.page-form select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

/* Checkbox & Radio */
.checkbox-input {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.25rem;
}
.checkbox-c[type=checkbox],
.checkbox-c[type=radio] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    background: transparent;
    border: 1.5px solid rgb(255 255 255);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.checkbox-c[type=radio] { border-radius: 50%; }
.checkbox-c:checked[type=checkbox],
.checkbox-c:checked[type=radio] {
    background: var(--accent, #2563eb);
    border-color: var(--accent, #2563eb);
}
.checkbox-c:checked[type=checkbox]::after {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.15rem;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-c:checked[type=radio]::after {
    content: '';
    position: absolute;
    left: 4px; top: 4px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
}
.label-check {
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.5;
}
.label-check a {color: #ffffff;/* text-decoration: underline; */border-bottom: 1px solid;}
.label-check a:hover { opacity: 0.8; }

/* Submit button inside forms */
.form-submit-group {
    margin-top: 2rem;
}
:where(.form-submit-group .custom-button) {
    min-width: 160px;
}

/* Error tooltip */
.error {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ef4444;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 4px;
    z-index: 10;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.error::before {
    content: '';
    position: absolute;
    top: -4px; left: 12px;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #ef4444;
}
.error.show { display: flex; }

/* Honeypot (anti-spam, always hidden) */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Responsive: stack form grid on mobile */
@media (max-width: 767.98px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
    }
    .form-row .form-col {
        flex: 0 0 100% !important;
    }
}

/* Testimonial */
:where(.sec-templates) .tpl-testimonial { padding: 1.5rem; border-radius: var(--radius); }
:where(.sec-templates) .tpl-testimonial-quote { font-style: italic; margin-bottom: 1rem; }
:where(.sec-templates) .tpl-testimonial-author { font-weight: 600; }

/* Counter */
:where(.sec-templates) .tpl-counter { text-align: center; }
:where(.sec-templates) .tpl-counter-number { font-size: 2.5rem; font-weight: 700; }

/* Tabs */
:where(.sec-templates) .tpl-tabs-nav { display: flex; gap: 0; border-bottom: 1px solid var(--border); }
:where(.sec-templates) .tpl-tab-btn {
    padding: 0.75rem 1.25rem; background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 1rem; color: var(--text-secondary);
    border-bottom: 2px solid transparent; transition: all var(--transition);
}
:where(.sec-templates) .tpl-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
:where(.sec-templates) .tpl-tab-panel { display: none; padding: 1.5rem 0; }
:where(.sec-templates) .tpl-tab-panel.active { display: block; }

/* Team */
:where(.sec-templates) .tpl-team-photo img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
:where(.sec-templates) .tpl-team-name { font-weight: 600; }

/* Accordion / FAQ */
:where(.sec-templates) .tpl-accordion-item { border-bottom: 1px solid var(--border); }
:where(.sec-templates) .tpl-accordion-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0; cursor: pointer; font-weight: 600;
}
:where(.sec-templates) .tpl-accordion-body { padding: 0 0 1rem; display: none; }
:where(.sec-templates) .tpl-accordion-item.open .tpl-accordion-body { display: block; }

/* Heading */
:where(.sec-templates) .tpl-heading-separator {
    width: 60px; height: 3px; background: var(--accent); margin-top: 0.75rem;
}

/* Spacer */
:where(.sec-templates) .tpl-spacer { height: 40px; }

/* Alert */
:where(.sec-templates) .tpl-alert {
    padding: 1rem 1.25rem; border-radius: var(--radius); border-left: 4px solid;
}
:where(.sec-templates) .tpl-alert-info { border-color: #3b82f6; background: #eff6ff; }
:where(.sec-templates) .tpl-alert-success { border-color: #10b981; background: #ecfdf5; }
:where(.sec-templates) .tpl-alert-warning { border-color: #f59e0b; background: #fffbeb; }
:where(.sec-templates) .tpl-alert-danger { border-color: #ef4444; background: #fef2f2; }

/* Pricing Table */
:where(.sec-templates) .tpl-pricing { border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; }
:where(.sec-templates) .tpl-pricing-price { font-size: 2.5rem; font-weight: 700; }
:where(.sec-templates) .tpl-pricing-features { list-style: none; padding: 0; }
:where(.sec-templates) .tpl-pricing-features li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }

/* Logo Carousel */
:where(.sec-templates) .tpl-logo-carousel img { max-height: 60px; width: auto; object-fit: contain; }

/* Progress Bar */
:where(.sec-templates) .tpl-progress { margin-bottom: 1rem; }
:where(.sec-templates) .tpl-progress-bar { height: 8px; background: var(--surface-alt); border-radius: 4px; overflow: hidden; }
:where(.sec-templates) .tpl-progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 1s ease; }

/* Query Loop */
:where(.sec-templates) .pp-query-loop-grid {
    display: grid; gap: var(--ql-gap, 1.5rem);
    grid-template-columns: repeat(var(--ql-cols, 3), 1fr);
}
/* Masonry layout â€” alternating 75%/25% rows */
:where(.sec-templates) .pp-query-loop-masonry {
    display: flex;
    flex-direction: column;
    gap: var(--ql-gap, 1.5rem);
}
:where(.sec-templates) .pp-masonry-row {
    display: flex;
    gap: var(--ql-gap, 1.5rem);
}
:where(.sec-templates) .pp-masonry-row--reverse {
    flex-direction: row-reverse;
}
:where(.sec-templates) .pp-masonry-cell--lg { flex: 0 0 calc(66.666% - var(--ql-gap, 1.5rem) / 2); min-width: 0; }
:where(.sec-templates) .pp-masonry-cell--sm { flex: 0 0 calc(33.333% - var(--ql-gap, 1.5rem) / 2); min-width: 0; }
:where(.sec-templates) .pp-masonry-cell .pp-query-card { height: 100%; }
:where(.sec-templates) .pp-masonry-cell .pp-query-card img { height: 100%; object-fit: cover; }
:where(.sec-templates) .pp-masonry-cell .pp-query-card--overlay { height: 100%; }
/* Angoli tagliati per masonry cells â€” clip-path polygon */
:where(.sec-templates) .pp-mask-rettangolo .pp-query-card {
    clip-path: polygon(95.1% 100%, 0% 100%, 0% 9.8%, 4.9% 0%, 100% 0%, 100% 90.2%, 95.1% 100%);
}
:where(.sec-templates) .pp-mask-quadrato .pp-query-card {
    clip-path: polygon(90.17% 100%, 0% 100%, 0% 9.8%, 9.83% 0%, 100% 0%, 100% 90.2%, 90.17% 100%);
}
/* Carousel masks â€” alternate sizes (rettangolo wider, quadrato narrower) */
:where(.sec-templates) .splide__slide.pp-mask-rettangolo { flex: 0 0 auto; width: 38%; }
:where(.sec-templates) .splide__slide.pp-mask-quadrato { flex: 0 0 auto; width: 26%; }
/* Masonry responsive */
@media (max-width: 768px) {
    :where(.sec-templates) .pp-masonry-row { flex-direction: column; }
    :where(.sec-templates) .pp-masonry-row--reverse { flex-direction: column; }
    :where(.sec-templates) .pp-masonry-cell--sm,
    :where(.sec-templates) .pp-masonry-cell--lg { flex: none; }
    :where(.sec-templates) .pp-masonry-cell .pp-query-card,
    :where(.sec-templates) .pp-masonry-cell .pp-query-card img,
    :where(.sec-templates) .pp-masonry-cell .pp-query-card--overlay {height: 100%;}
}
:where(.sec-templates) .pp-query-card { display: block; text-decoration: none; color: inherit; border-radius: var(--ql-card-radius, 0); overflow: hidden; transition: background 0.3s ease; }
/* List card â€” horizontal layout */
:where(.sec-templates) .pp-query-card--list {
    display: flex;
    align-items: stretch;
    gap: 2rem;
}
:where(.sec-templates) .pp-query-card--list .pp-query-card__image {
    flex-shrink: 0;
    width: 140px;
    max-height: 200px;
}
:where(.sec-templates) .pp-query-card--list .pp-query-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
:where(.sec-templates) .pp-query-card--list .pp-query-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}
:where(.sec-templates) .pp-query-card--list .pp-query-card__title {
    margin-bottom: 0.25rem;
}
:where(.sec-templates) .pp-query-card--list .pp-query-card__excerpt {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
/*:where(.sec-templates) .pp-query-card--list .pp-query-card__readmore {*/
/*    display: inline-flex !important;*/
/*    width: auto !important;*/
/*    align-self: flex-start;*/
/*}*/

:where(.sec-templates) .pp-query-card--list .pp-query-card__readmore {
    display: inline-flex !important;
    width: auto;
    align-self: flex-start;
}

/* List card separator between rows */
:where(.sec-templates) .pp-query-loop-grid .pp-query-loop-grid__item:has(.pp-query-card--list) {
    border-bottom: 1px solid var(--ql-separator, rgba(255,255,255,0.15));
    padding-bottom: var(--ql-gap, 1.5rem);
}
:where(.sec-templates) .pp-query-loop-grid .pp-query-loop-grid__item:last-child:has(.pp-query-card--list) {
    border-bottom: none;
    padding-bottom: 0;
}
@media (max-width: 575.98px) {
    :where(.sec-templates) .pp-query-card--list { flex-direction: column; }
    :where(.sec-templates) .pp-query-card--list .pp-query-card__image { width: 100%; height: 180px; }
}
:where(.sec-templates) .pp-query-card img { width: 100%; height: var(--ql-img-height, 200px); object-fit: cover; }
:where(.sec-templates) .pp-query-card__body { padding: 1rem; }
:where(.sec-templates) .pp-query-card__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
:where(.sec-templates) .pp-query-card__excerpt { color: var(--text-secondary); font-size: 0.9rem; }
:where(.sec-templates) .pp-query-card__date,
:where(.sec-templates) .pp-query-card__cat,
:where(.sec-templates) .pp-query-card__location { font-size: 0.8rem; color: var(--text-secondary); }
:where(.sec-templates) .pp-query-card__meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
:where(.sec-templates) .pp-query-card__meta .pp-query-card__date + .pp-query-card__location::before { content: '\2022'; margin-right: 0; }
:where(.sec-templates .pp-query-card__readmore) { display: inline-block; margin-top: 0.75rem; color: var(--accent); font-weight: 500; font-size: 0.9rem; text-decoration: none; }
:where(.sec-templates .pp-query-card__readmore:hover),
:where(.sec-templates) .pp-query-card:hover .pp-query-card__readmore { text-decoration: none; }
:where(.sec-templates) .pp-ql-shadow { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
:where(.sec-templates) .pp-ql-border { border: 1px solid var(--border, #e5e7eb); }

/* Overlay card style */
:where(.sec-templates) .pp-query-card--overlay {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden; border-radius: var(--ql-card-radius, 0);
}
:where(.sec-templates) .pp-query-card--overlay .pp-query-card__bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
:where(.sec-templates) .pp-query-card--overlay .pp-query-card__overlay {
    position: absolute; inset: 0; z-index: 1;
}
:where(.sec-templates) .pp-query-card--overlay .pp-query-card__body--overlay {
    position: relative; z-index: 2; padding: 1.5rem; color: #fff;
}
:where(.sec-templates) .pp-query-card--overlay .pp-query-card__title { color: #fff; }
:where(.sec-templates) .pp-query-card--overlay .pp-query-card__excerpt { color: rgba(255,255,255,0.8); }
:where(.sec-templates) .pp-query-card--overlay .pp-query-card__date,
:where(.sec-templates) .pp-query-card--overlay .pp-query-card__cat,
:where(.sec-templates) .pp-query-card--overlay .pp-query-card__location { color: rgba(255,255,255,0.6); }
:where(.sec-templates .pp-query-card--overlay .pp-query-card__readmore) { color: #fff; border: 1px solid rgba(255,255,255,0.5); padding: 0.5rem 1rem; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; transition: background 0.3s, border-color 0.3s; }
:where(.sec-templates .pp-query-card--overlay .pp-query-card__readmore:hover),
:where(.sec-templates) .pp-query-card--overlay:hover .pp-query-card__readmore { background: rgba(255,255,255,0.15); border-color: #fff; text-decoration: none; }

/* Minimal card */
:where(.sec-templates) .pp-query-card--minimal .pp-query-card__title { padding: 0.75rem 0; text-align: center; }

/* Custom arrow positions & styling */
.pp-ql-custom-arrows { display: flex; gap: var(--ql-arrow-gap, 8px); margin-top: 16px; }
.pp-ql-arrows-vertical .pp-ql-custom-arrows { flex-direction: column; }
.pp-ql-arrows-bottom-left .pp-ql-custom-arrows { justify-content: flex-start; }
.pp-ql-arrows-bottom-right .pp-ql-custom-arrows { justify-content: flex-end; }
.pp-ql-arrows-bottom-center .pp-ql-custom-arrows { justify-content: center; }
.pp-ql-arrows-top-right .pp-ql-custom-arrows,
.pp-ql-arrows-top-left .pp-ql-custom-arrows { position: absolute; top: -50px; margin-top: 0; }
.pp-ql-arrows-top-right .pp-ql-custom-arrows { right: 0; }
.pp-ql-arrows-top-left .pp-ql-custom-arrows { left: 0; }
.pp-ql-arrows-top-right, .pp-ql-arrows-top-left { position: relative; }
/* Stacked arrows (both on same side, centered vertically beside slides) */
.pp-ql-arrows-left-stack { display: flex; align-items: center; gap: 16px; }
.pp-ql-arrows-left-stack .pp-ql-custom-arrows { display: flex; flex-direction: column; gap: var(--ql-arrow-gap, 8px); order: -1; flex-shrink: 0; }
.pp-ql-arrows-left-stack .splide { flex: 1; min-width: 0; }
.pp-ql-arrows-right-stack { display: flex; align-items: center; gap: 16px; }
.pp-ql-arrows-right-stack .pp-ql-custom-arrows { display: flex; flex-direction: column; gap: var(--ql-arrow-gap, 8px); flex-shrink: 0; }
.pp-ql-arrows-right-stack .splide { flex: 1; min-width: 0; }

.pp-ql-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: var(--ql-arrow-size, 40px); height: var(--ql-arrow-size, 40px);
    border-radius: var(--ql-arrow-radius, 50%);
    border: var(--ql-arrow-border, 1px solid currentColor);
    background: var(--ql-arrow-bg, transparent);
    color: var(--ql-arrow-color, inherit);
    cursor: pointer;
    transition: background var(--ql-arrow-transition, 300ms) ease, color var(--ql-arrow-transition, 300ms) ease, border-color var(--ql-arrow-transition, 300ms) ease, transform var(--ql-arrow-transition, 300ms) ease;
}
.pp-ql-arrow:hover {
    color: var(--ql-arrow-hover-color, var(--ql-arrow-color, inherit));
    background: var(--ql-arrow-hover-bg, var(--ql-arrow-bg, transparent));
    border-color: var(--ql-arrow-hover-border-color, currentColor);
    transform: scale(var(--ql-arrow-hover-scale, 1));
}

/* Gallery carousel arrows (Splide default arrows, customizable) */
.pp-gal-arrows-custom .splide__arrow {
    width: var(--gal-arrow-size, 40px);
    height: var(--gal-arrow-size, 40px);
    border-radius: var(--gal-arrow-radius, 50%);
    border: var(--gal-arrow-border, 1px solid currentColor);
    background: var(--gal-arrow-bg, transparent);
    color: var(--gal-arrow-color, inherit);
    opacity: 1;
    transition: background var(--gal-arrow-transition, 300ms) ease,
                color var(--gal-arrow-transition, 300ms) ease,
                border-color var(--gal-arrow-transition, 300ms) ease,
                transform var(--gal-arrow-transition, 300ms) ease;
}
.pp-gal-arrows-custom .splide__arrow svg,
.pp-gal-arrows-custom .splide__arrow i {
    color: currentColor;
    fill: currentColor;
    width: var(--gal-arrow-svg-size, 24px);
    height: var(--gal-arrow-svg-size, 24px);
    font-size: var(--gal-arrow-svg-size, 24px);
}
/* Ruota la freccia "prev" (il globalArrowSvg Ã¨ orientato a destra di default). */
.pp-gal-arrows-custom .pp-gal-arrow-prev svg,
.pp-gal-arrows-custom .pp-gal-arrow-prev i {
    transform: rotate(180deg);
}
.pp-gal-arrows-custom .splide__arrow:hover:not(:disabled) {
    color: var(--gal-arrow-hover-color, var(--gal-arrow-color, inherit));
    background: var(--gal-arrow-hover-bg, var(--gal-arrow-bg, transparent));
    border-color: var(--gal-arrow-hover-border-color, currentColor);
    transform: translateY(-50%) scale(var(--gal-arrow-hover-scale, 1));
}
.pp-gal-arrows-custom .splide__arrow:disabled {
    opacity: 0.4;
}

/* Card hover effects */
/* Zoom: scala solo l'immagine dentro la card, non l'intera card.
   - Layout default/list: img dentro .pp-query-card__image (wrapper con overflow:hidden)
   - Layout overlay: .pp-query-card__bg Ã¨ l'img a sÃ© stante; la card stessa ha
     overflow:hidden cosÃ¬ lo scale si clippa senza uscire dal bordo. */
.pp-ql-hover-scale .pp-query-card { overflow: hidden; }
.pp-ql-hover-scale .pp-query-card__image { overflow: hidden; }
.pp-ql-hover-scale .pp-query-card__image img,
.pp-ql-hover-scale .pp-query-card__bg { transition: transform 0.5s ease; transform-origin: center; }
.pp-ql-hover-scale .pp-query-card:hover .pp-query-card__image img,
.pp-ql-hover-scale .pp-query-card:hover .pp-query-card__bg { transform: scale(1.08); }

.pp-ql-hover-expand .splide__slide { transition: flex 0.4s ease; }
.pp-ql-hover-expand .splide__slide:hover { flex: 1.5 !important; }

.pp-ql-hover-lift .pp-query-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pp-ql-hover-lift .pp-query-card:hover { transform: translateY(-8px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }

.pp-ql-hover-shadow .pp-query-card { transition: box-shadow 0.3s ease; }
.pp-ql-hover-shadow .pp-query-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

.pp-ql-hover-tilt .pp-query-card { transition: transform 0.3s ease; perspective: 800px; }
.pp-ql-hover-tilt .pp-query-card:hover { transform: perspective(800px) rotateY(-5deg) rotateX(3deg) scale(1.02); }

.pp-ql-hover-darken .pp-query-card { transition: filter 0.3s ease; }
.pp-ql-hover-darken .pp-query-card:hover { filter: brightness(0.7); }

.pp-ql-hover-brighten .pp-query-card { transition: filter 0.3s ease; }
.pp-ql-hover-brighten .pp-query-card:hover { filter: brightness(1.15); }

/* Query Loop pagination (solo layout grid) */
.pp-ql-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 2rem;
    --pp-page-accent: #ffffff;
    --pp-page-accent-text: #db0812;
}
.pp-ql-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgb(255 255 255);
    border-radius: 0;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    font-family: 'Articulat CF', 'articulat-cf', sans-serif;
    line-height: 1;
}
.pp-ql-pagination__btn:hover:not(.is-disabled):not(.is-active) {
    background: var(--pp-page-accent);
    color: var(--pp-page-accent-text);
    border-color: var(--pp-page-accent);
}
.pp-ql-pagination__btn:hover:not(.is-disabled):not(.is-active) svg {
    fill: var(--pp-page-accent-text);
}
.pp-ql-pagination__btn.is-active {
    background: var(--pp-page-accent);
    color: var(--pp-page-accent-text);
    border-color: var(--pp-page-accent);
    cursor: default;
}
.pp-ql-pagination__btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.pp-ql-pagination__btn svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
    stroke: currentColor;
}

/* Carousel wrapper overflow for peek */
:where(.sec-templates) .pp-query-loop-carousel-wrap { overflow: visible; }
:where(.sec-templates) .pp-query-loop-carousel-wrap .splide { overflow: hidden; }

/* Also support non-:where versions for page templates */
.pp-query-loop.pp-query-grid {
    display: grid; gap: var(--gap, 1.5rem);
    grid-template-columns: repeat(var(--columns, 3), 1fr);
}
:where(.pp-query-card) { display: block; text-decoration: none; color: inherit; overflow: hidden; }
.pp-query-card-media img { width: 100%; height: 200px; object-fit: cover; }
.pp-query-card-body { padding: 1rem; }
.pp-query-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.pp-query-card-excerpt { color: var(--text-secondary); font-size: 0.9rem; }
.pp-query-card-meta { font-size: 0.8rem; color: var(--text-secondary); display: block; margin-bottom: 0.25rem; }
.pp-query-card-link { color: var(--accent); font-weight: 500; font-size: 0.9rem; }

.pb-collapse-header {
    gap: 1rem;
}

.pb-collapse-icon {
    flex-shrink: 0;
}

/* Category Products list */
:where(.sec-templates) .pp-cat-products.menu_list {
    padding-bottom: 0;
    position: relative;
    display: grid;
    -webkit-user-select: none;
    user-select: none;
}
:where(.sec-templates) .pp-cat-products .menu__item {
    justify-content: space-between;
    position: relative;
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.15));
    padding: 2rem 0;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, border-color 0.3s ease;
}
:where(.sec-templates) .pp-cat-products .menu__item:first-child { border-top: 1px solid var(--border, rgba(255,255,255,0.15)); transition: color 0.3s ease, border-color 0.3s ease; }
:where(.sec-templates) .pp-cat-products .menu__item-text {position: relative;display: block;line-height: 1;}
:where(.sec-templates) .pp-cat-products .menu__item-textinner {
    font-size: clamp(2rem, 5vw, 3.5rem); position: relative; font-weight: 500;
    display: block; width: fit-content; line-height: 1.1; text-wrap: wrap;
}
:where(.sec-templates) .pp-cat-products__arrow { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 4px; transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease; }
:where(.sec-templates) .pp-cat-products__arrow svg { width: 16px; height: 16px; }
:where(.sec-templates) .pp-cat-products__empty { color: var(--text-secondary); font-style: italic; padding: 2rem 0; }

/* Hover-reveal image */
:where(.sec-templates) .pp-cat-products .hover-reveal {
    position: absolute; z-index: -1; width: 300px; height: 400px;
    top: 0; left: 0; pointer-events: none; opacity: 0;
    will-change: transform, filter;
}
:where(.sec-templates) .pp-cat-products .hover-reveal__inner { overflow: hidden; }
:where(.sec-templates) .pp-cat-products .hover-reveal__inner,
:where(.sec-templates) .pp-cat-products .hover-reveal__img { width: 100%; height: 100%; position: relative; }
:where(.sec-templates) .pp-cat-products .hover-reveal__img { background-size: cover; background-position: 50% 50%; }

/* Map */
:where(.sec-templates) .map-container { width: 100%; height: 450px; border-radius: var(--radius); }
.map-wrapper { border-radius: var(--radius); overflow: hidden; }
.map-container { width: 100%; height: 450px; }
.map-locations-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.map-location-item { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: box-shadow var(--transition); }
.map-location-item:hover { box-shadow: var(--shadow-md); }
.map-location-name { font-weight: 600; margin-bottom: 0.25rem; }
.map-location-address { color: var(--text-secondary); font-size: 0.9rem; }
.map-location-link { color: var(--accent); font-size: 0.85rem; }

/* Iframe */
:where(.sec-templates) .tpl-iframe iframe { width: 100%; border: none; min-height: 400px; }

/* Dynamic Banner */
:where(.sec-templates) .tpl-dynamic-banner { position: relative; overflow: hidden; border-radius: var(--radius); }
:where(.sec-templates) .tpl-dynamic-banner img { width: 100%; display: block; }

/* Contacts / Addresses */
:where(.sec-templates) .tpl-contacts-grid { display: grid; gap: 1rem; }
:where(.sec-templates) .tpl-contact-item { padding: 1rem; background: var(--surface-alt); border-radius: var(--radius); }

/* Menu Block */
:where(.sec-templates) .tpl-menu-block ul { list-style: none; padding: 0; }
:where(.sec-templates) .tpl-menu-block li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
:where(.sec-templates) .tpl-menu-block a { color: var(--text); }
:where(.sec-templates) .tpl-menu-block a:hover { color: var(--accent); }

/* Separator */
:where(.sec-templates) .tpl-separator { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }

/* ============================================
   CONTENT TEXT (PROSE)
   ============================================ */
.content-text { line-height: 1.7; }
.content-text p { margin-bottom: 1em; }
.content-text ul, .content-text ol { margin-bottom: 1em; padding-left: 1.5em; }
.content-text img { max-width: 100%; height: auto; border-radius: var(--radius); }
.content-text a { text-decoration: underline; }

/* ============================================
   TOAST / MESSAGES
   ============================================ */
/* .message-contact â€” styled in form-validation.css */
.message-content {
    background: #10b981; color: #fff;
    padding: 12px 24px; border-radius: var(--radius);
    display: flex; align-items: center; gap: 8px;
    font-weight: 500; box-shadow: var(--shadow-lg);
}

/* ============================================
   VISIBILITY SYSTEM (PAGE BUILDER)
   Scoped media queries per breakpoint so that
   pp-hidden-desktop hides ONLY on desktop, etc.
   (The old rules were leaking: .pp-hidden-desktop
   had no media query and hid on every viewport,
   .pp-hidden-tablet used max-width:1024px so it
   also triggered on mobile.)
   `body:not(.le-preview-mode)` guard: in live-editor
   preview the elements remain visible (useful to
   inspect/edit the hidden content).
   ============================================ */
@media (min-width: 1281px) {
    body:not(.le-preview-mode) .pp-hidden-desktop { display: none !important; }
}
@media (min-width: 1025px) and (max-width: 1280px) and (orientation: landscape) {
    body:not(.le-preview-mode) .pp-hidden-tablet-lg { display: none !important; }
    
    :where(.sec-templates) .splide__slide.pp-mask-rettangolo {
    flex: 0 0 auto;
    width: 50%;
}

:where(.sec-templates) .splide__slide.pp-mask-quadrato {
    flex: 0 0 auto;
    width: 50%;
}
    
    
    
}
@media (min-width: 768px) and (max-width: 1280px) {
    body:not(.le-preview-mode) .pp-hidden-tablet { display: none !important; }
    
        :where(.sec-templates) .splide__slide.pp-mask-rettangolo {
    flex: 0 0 auto;
    width: 50%;
}

:where(.sec-templates) .splide__slide.pp-mask-quadrato {
    flex: 0 0 auto;
    width: 50%;
}
    
}
@media (max-width: 767px) {
    body:not(.le-preview-mode) .pp-hidden-mobile { display: none !important; }
}

/* ============================================
   PRIVATE AREA (LOGIN / RISORSE)
   ============================================ */
.login_sec { opacity: 1; visibility: visible; transition: 0.2s; }
.login_sec.hide { opacity: 0; visibility: hidden; height: 0; overflow: hidden; }

.private-area-users { opacity: 0; visibility: hidden; transition: 0.2s; display: none; }
.private-area-users.show { display: block; opacity: 1; visibility: visible; }

.contact-form-card { background: var(--surface-alt); padding: 2rem; border-radius: var(--radius); }

.view-passsord { cursor: pointer; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.view-passsord .show { display: block; }
.view-passsord .hide { display: none; }

.grid-resources-private-area {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.item-private-area {
    background: var(--surface); padding: 1rem; display: flex;
    border-radius: var(--radius); align-items: center;
    justify-content: space-between; border: 1px solid var(--border);
}
.item-private-area svg { height: 3rem; }
.item-private-area .text p { margin: 0; font-weight: 600; font-size: 0.95rem; }

.dimension-file { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; }

.file-private-area { display: flex; align-items: center; gap: 1rem; }
.actions-file { display: flex; gap: 0.5rem; }

.btn-action-file {
    cursor: pointer; background: var(--surface-alt); border-radius: var(--radius);
    padding: 0.4rem; width: 2.2rem; height: 2.2rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--text); transition: all var(--transition); position: relative; border: none;
}
.btn-action-file svg { width: 1rem; height: 1rem; }
.btn-action-file:hover { color: #fff; background: var(--accent); }
.btn-action-file.disabled { opacity: 0.5; cursor: default; }
.btn-action-file.disabled:hover { color: var(--text); background: var(--surface-alt); }

.btn-action-file .badge_to-signe {
    position: absolute; top: -2px; left: -2px;
    width: 0.6rem; height: 0.6rem;
    background: var(--accent); border-radius: 3px;
    opacity: 0; visibility: hidden; transition: all var(--transition);
}
.btn-action-file.notify .badge_to-signe { opacity: 1; visibility: visible; }
.btn-action-file:hover .badge_to-signe { opacity: 0; visibility: hidden; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinning { animation: spin 1s linear infinite; }

/* Private area modals */
.modal-to-signed,
.modal-no-signed {
    position: fixed; inset: 0; display: flex;
    z-index: 99999; backdrop-filter: brightness(0.5);
    justify-content: center; align-items: center;
    visibility: hidden; opacity: 0; transition: 0.2s ease;
}
.modal-to-signed.open, .modal-no-signed.open { visibility: visible; opacity: 1; }

.content-modal-to-signed,
.content-modal-no-signed {
    background: var(--surface); width: 70vw; max-height: 90vh;
    padding: 2rem; border-radius: var(--radius);
    display: flex; flex-direction: column; justify-content: space-between;
    overflow-y: auto;
}

.view-detail-file { padding: 1rem; background: var(--surface-alt); border-radius: var(--radius); }
.view-detail-file iframe { min-height: 430px; width: 100%; }
.view-detail-file img { width: 100%; object-fit: cover; height: 430px; }
.view-detail-file video { width: 100%; height: 430px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .form-grid { grid-template-columns: 1fr; }
    .grid-resources-private-area { grid-template-columns: 1fr; }
    .content-modal-to-signed, .content-modal-no-signed { width: 95vw; }
    .pp-query-loop.pp-query-grid { grid-template-columns: 1fr; }
    
    
    :where(.sec-templates) .gallery-grid .grid-item.width-33 {
     width: calc(50% - var(--gallery-gap, 1rem) / 2);
    height: 8.5rem;
}


:where(.sec-templates) .gallery-grid .grid-item.width-25 {
    width: calc(50% - var(--gallery-gap, 1rem) / 2);
    height: 8.5rem;
}



:where(.sec-templates) .gallery-grid .grid-item.width-75 {
    width: calc(50% - var(--gallery-gap, 1rem) / 2);
            height: 8.5rem;
}

:where(.sec-templates) .gallery-grid .grid-item.width-50 {
    width: calc(50% - var(--gallery-gap, 1rem) / 2);
    height: 10rem;
}



:where(.sec-templates) .splide__slide.pp-mask-rettangolo {
    flex: 0 0 auto;
    width: 100%;
}

:where(.sec-templates) .splide__slide.pp-mask-quadrato {
    flex: 0 0 auto;
    width: 100%;
}
    
}

/* 
   Page Load Transition (removeBlur)*/
.load-body {
    animation: removeBlur 0.5s ease-in-out;
    overflow-y: hidden;
}
@keyframes removeBlur {
    0%   { filter: blur(15px); }
    50%  { filter: blur(7px); }
    100% { filter: blur(0px); }
}

.show-mobile{
        visibility:hidden;
        display: none !important;
    }

@media (min-width: 768px) and (max-width: 1024px) {

    .show-mobile{
        visibility:visible;
        display:block !important;
    }
    
    .mobile-nav-arrow {
    color: #FFFFFF;
    width: 10px;
}

:where(.sec-templates) .splide__slide.pp-mask-rettangolo {
    flex: 0 0 auto;
    width: 50%;
}

:where(.sec-templates) .splide__slide.pp-mask-quadrato {
    flex: 0 0 auto;
    width: 50%;
}
    
}

@media (min-width: 768px) and (max-width: 1280px) and (orientation: portrait) {

    .show-mobile{
        visibility:visible;
        display:block !important;
    }
    
    .mobile-nav-arrow {
    color: #FFFFFF;
    width: 10px;
}

:where(.sec-templates) .splide__slide.pp-mask-rettangolo {
    flex: 0 0 auto;
    width: 50%;
}

:where(.sec-templates) .splide__slide.pp-mask-quadrato {
    flex: 0 0 auto;
    width: 50%;
}
    
}

@media (max-width: 767px) {

    .show-mobile{
        visibility:visible;
        display:block !important;
    }
    
    .pp-ql-arrows-bottom-center .pp-ql-custom-arrows {
    justify-content: center;
    display: none;
}

.mobile-nav-arrow {
    color: #FFFFFF;
    width: 10px;
}

:where(.sec-templates) .pp-cat-products .menu__item {
    gap: 1rem;
}

.footer-menu-block .footer-links-list {
    justify-content: flex-start;
}
}

