/* ============================================
   BOSTON PRODUCTS — CORE (caricato su tutte le pagine)
   ============================================ */

html, body {
    font-family: 'Electrolux Sans', system-ui, sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
    max-width: 100vw;
}

/* WordPress core styles */
.alignwide { max-width: 1200px; margin: 0 auto; }
.alignfull { width: 100%; }
img { max-width: 100%; height: auto; }

/* ============================================
   CTA BUTTONS
   ============================================ */
.boston-products-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1rem;
    line-height: 1;
    border-radius: 9999px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}
.boston-products-btn--primary { background-color: #005095; color: #ffffff; }
.boston-products-btn--primary:hover { background-color: #00396d; }
.boston-products-btn--ghost {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.boston-products-btn--ghost:hover { background-color: rgba(255, 255, 255, 0.2); }
.boston-products-btn--ghost-light {
    background-color: rgba(0, 80, 149, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 80, 149, 0.18);
    color: #1a1c1c;
}
.boston-products-btn--ghost-light:hover { background-color: rgba(0, 80, 149, 0.14); }
.boston-products-btn--ghost-primary {
    background-color: rgba(0, 80, 149, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
.boston-products-btn--ghost-primary:hover { background-color: rgba(0, 80, 149, 0.95); }
.boston-products-btn--white { background-color: #ffffff; color: #00396d; font-weight: 700; }
.boston-products-btn--white:hover { background-color: #f4f4f4; }
.boston-products-btn--dark { background-color: #000000; color: #ffffff; }
.boston-products-btn--dark:hover { background-color: rgba(0, 0, 0, 0.8); }
.boston-products-btn--sm { padding: 0.875rem 2rem; font-size: 0.875rem; }

/* ============================================
   CARD
   ============================================ */
.boston-products-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    transition: border-color 0.3s ease;
}
.boston-products-card:hover { border-color: rgba(0, 80, 149, 0.3); }
.boston-products-card, .boston-products-card * {
    transition: background-color 0s, color 0s, border-color 0.3s;
}
.boston-products-card--grey { background-color: #f3f3f3; }

/* ============================================
   ICON BOX
   ============================================ */
.boston-products-icon-box {
    width: 3rem; height: 3rem;
    background-color: rgba(0, 80, 149, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.boston-products-icon-box--lg { width: 3.5rem; height: 3.5rem; border-radius: 14px; }

/* ============================================
   SECTION PADDING
   ============================================ */
.boston-products-section-px { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 768px) { .boston-products-section-px { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1024px) { .boston-products-section-px { padding-left: 6rem; padding-right: 6rem; } }

/* ============================================
   RICH TEXT (descrizione prodotto, contenuto editor)
   ============================================ */
.boston-products-rich-text p { margin-bottom: 1em; }
.boston-products-rich-text p:last-child { margin-bottom: 0; }
.boston-products-rich-text ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1em; }
.boston-products-rich-text ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.boston-products-rich-text li { margin-bottom: 0.25em; }
.boston-products-rich-text h2,
.boston-products-rich-text h3,
.boston-products-rich-text h4 { font-weight: 700; margin: 1.5em 0 0.5em; line-height: 1.3; }
.boston-products-rich-text h2 { font-size: 1.5rem; }
.boston-products-rich-text h3 { font-size: 1.25rem; }
.boston-products-rich-text h4 { font-size: 1.1rem; }
.boston-products-rich-text strong { font-weight: 700; }
.boston-products-rich-text em { font-style: italic; }
.boston-products-rich-text a { color: #005095; text-decoration: underline; }
.boston-products-rich-text blockquote { border-left: 3px solid #005095; padding-left: 1rem; font-style: italic; margin: 1.5em 0; }

/* ============================================
   EYEBROW
   ============================================ */
.boston-products-eyebrow {
    color: #005095; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.3em; font-size: 0.75rem; margin-bottom: 1rem; display: block;
}
.boston-products-eyebrow--white { color: #ffffff; }

/* ============================================
   FEATURE TITLE
   ============================================ */
.boston-products-feature-title {
    font-weight: 700; font-size: 1.2rem; line-height: 1.375;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem;
}

/* ============================================
   HERO DIVIDER
   ============================================ */
.boston-products-hero-divider { height: 4px; width: 6rem; background-color: #ffffff; margin-top: 2rem; }

/* ============================================
   BADGE
   ============================================ */
.boston-products-badge {
    display: inline-block; background-color: #005095; color: #ffffff;
    padding: 0.25rem 1rem; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; border-radius: 9999px;
}

/* ============================================
   CONTAINER
   ============================================ */
.boston-products-container { max-width: 1440px; margin-left: auto; margin-right: auto; }

/* ============================================
   HERO STATS (singolo prodotto)
   ============================================ */
.boston-products-hero-stats {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}
.boston-products-hero-stat {
    text-align: left;
}
.boston-products-hero-stats--inline .boston-products-hero-stat {
    text-align: left;
}
.boston-products-hero-stat__value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #005095;
    line-height: 1;
}
.boston-products-hero-stat__label {
    margin-top: 0.25rem;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #424751;
}

/* ============================================
   BLUEPRINT GRID (singolo prodotto)
   ============================================ */
.boston-products-blueprint-grid {
    background-size: 60px 60px;
    background-image: linear-gradient(to right, rgba(0, 80, 149, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 80, 149, 0.04) 1px, transparent 1px);
}

/* ============================================
   DESCRIZIONE PRODOTTO (sezione singolo prodotto)
   ============================================ */
.boston-products-description__body p {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 1rem;
}
.boston-products-description__body p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
    .boston-products-description__body p { font-size: 1rem; }
}

.boston-products-settori-pill {
    display: inline-block;
    padding: 0.55rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 80, 149, 0.25);
    color: #005095;
    font-family: var(--font-headline, inherit);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 80, 149, 0.06);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.boston-products-settori-pill:hover {
    background-color: rgba(0, 80, 149, 0.92);
    border-color: rgba(0, 80, 149, 0.92);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 80, 149, 0.25);
}

/* ============================================
   DATI TECNICI (sezione singolo prodotto)
   ============================================ */
.boston-products-data__aside {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#boston-products-data { padding-top: 0; }
@media (min-width: 768px) {
    #boston-products-data { padding-top: 8rem; }
}

/* Schema images modal */
.boston-products-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.boston-products-modal.is-open {
    display: flex;
}
.boston-products-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.boston-products-modal__content {
    position: relative;
    background-color: #ffffff;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    padding: 2.5rem;
    z-index: 1;
}
.boston-products-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #ffffff;
    border: 1px solid #c2c6d2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    z-index: 10;
}
.boston-products-modal__close:hover {
    background-color: #005095;
    color: #ffffff;
    border-color: #005095;
}
.boston-products-data__main {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .boston-products-data__aside { grid-column: span 4 / span 4; }
    .boston-products-data__main  { grid-column: span 8 / span 8; }
}

/* ============================================
   LAVA LAMP BG (sezione caratteristiche singolo prodotto)
   ============================================ */
.boston-products-lava {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f4;
    isolation: isolate;
}
.boston-products-lava__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
    z-index: 0;
    will-change: transform;
    pointer-events: none;
}
.boston-products-lava__blob--1 {
    top: -10%; left: -8%;
    width: 600px; height: 600px;
    background: rgba(0, 80, 149, 0.55);
    animation: boston-lava-1 14s linear infinite;
}
.boston-products-lava__blob--2 {
    bottom: -15%; right: -10%;
    width: 700px; height: 700px;
    background: rgba(165, 200, 255, 0.65);
    animation: boston-lava-2 18s linear infinite;
}
.boston-products-lava__blob--3 {
    top: 25%; left: 45%;
    width: 520px; height: 520px;
    background: rgba(212, 227, 255, 0.7);
    animation: boston-lava-3 12s linear infinite;
}
@keyframes boston-lava-1 {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(800px, 120px) scale(1.1); }
    50%  { transform: translate(900px, 600px) scale(0.95); }
    75%  { transform: translate(150px, 700px) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes boston-lava-2 {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(-200px, -700px) scale(1.1); }
    50%  { transform: translate(-900px, -600px) scale(0.9); }
    75%  { transform: translate(-800px, -100px) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes boston-lava-3 {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(350px, -300px) scale(1.15); }
    50%  { transform: translate(-300px, -350px) scale(0.95); }
    75%  { transform: translate(-400px, 350px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}
.boston-products-lava__content {
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .boston-products-lava__blob { filter: blur(60px); }
    .boston-products-lava__blob--1 { width: 380px; height: 380px; }
    .boston-products-lava__blob--2 { width: 440px; height: 440px; }
    .boston-products-lava__blob--3 { width: 340px; height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
    .boston-products-lava__blob { animation: none; }
}

/* ============================================
   STAT
   ============================================ */
.boston-products-stat-number {
    display: block; font-size: 3rem; font-weight: 900;
    color: #005095; line-height: 1; margin-bottom: 1rem;
}
.boston-products-stat-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.2em; color: #424751;
}

/* ============================================
   PRODUCT CAROUSEL
   ============================================ */
.boston-products-carousel [data-gallery-track] > div { width: 100%; }
@media (min-width: 768px)  { .boston-products-carousel [data-gallery-track] > div { width: calc(50% - 1rem); } }
@media (min-width: 1024px) { .boston-products-carousel [data-gallery-track] > div { width: calc(33.333% - 1.334rem); } }
