/**
 * Brand Single Page CSS
 * 
 * Stili per la pagina dettaglio del singolo brand (single-brand.php)
 * Include: titolo, badge, descrizione, key features, media, gallery, related brands
 * 
 * @package MadePrompt
 * @since 1.0.0
 */

/* ==========================================
   WRAPPER & CONTAINER
   Layout principale della pagina brand
   ========================================== */

.brand-page-wrapper {
    width: 100%;
    padding: var(--page-padding-desktop);
    min-height: 60vh;
    position: relative;
    overflow: visible; /* Allow SALE badge to overflow */
}

/* Add extra space at top when seasonal theme is active (for SALE badge) */
body.seasonal-theme .brand-page-wrapper {
    padding-top: calc(var(--page-padding-desktop, 2rem) + 30px);
}

/* Background image from gallery - REMOVED */

.brand-page-container {
    max-width: var(--box-max-width);
    margin: 0 auto;
    padding: var(--wrapper-padding-desktop);
}

/* ==========================================
   CONTENT BOX
   Box principale con effetto glassmorphism
   ========================================== */

.brand-page-content {
    position: relative; /* Allow absolute positioning of badges */
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 3px solid var(--brand-accent-color, rgba(255, 255, 255, 0.4));
    border-radius: var(--box-border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    margin: 0 auto var(--section-gap);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: visible; /* Allow badges to overflow */
}

.brand-page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    pointer-events: none;
}

/* ==========================================
   TITLE
   Titolo H1 del brand (SEO importante)
   ========================================== */

.brand-page-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        var(--brand-accent-color, #ffffff) 50%, 
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.75rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    position: relative;
    z-index: 1;
}

/* Badge below title - Glass style, prominent */
.brand-page-badge-below-title {
    display: block;
    width: fit-content;
    margin: 0 auto 2rem auto;
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ==========================================
   BADGE
   Etichetta "Popular", "New", "Top Rated" etc.
   Posizionata nell'angolo del media container
   ========================================== */

.brand-page-media-container {
    position: relative;
}

.brand-page-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.35rem 0.75rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0.85;
    width: auto;
    display: inline-block;
    white-space: nowrap;
}

/* Badge Color Variants - Muted colors (applies to both positions) */
.brand-page-badge-popular,
.brand-page-badge-below-title.brand-page-badge-popular {
    background: rgba(255, 215, 0, 0.7);
    color: #000;
}

.brand-page-badge-new,
.brand-page-badge-below-title.brand-page-badge-new {
    background: rgba(0, 200, 83, 0.7);
    color: #fff;
}

.brand-page-badge-top-rated,
.brand-page-badge-below-title.brand-page-badge-top-rated {
    background: rgba(255, 87, 34, 0.7);
    color: #fff;
}

.brand-page-badge-editor-choice,
.brand-page-badge-below-title.brand-page-badge-editor-choice {
    background: rgba(156, 39, 176, 0.7);
    color: #fff;
}

.brand-page-badge-free,
.brand-page-badge-below-title.brand-page-badge-free {
    background: rgba(76, 175, 80, 0.7);
    color: #fff;
}

.brand-page-badge-premium,
.brand-page-badge-below-title.brand-page-badge-premium {
    background: rgba(255, 215, 0, 0.7);
    color: #000;
}

/* ==========================================
   STATS MINIMAL - Icon + Value only, one line
   ========================================== */

.brand-stats-minimal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 0 0 2rem 0;
    padding: 0;
}

.stat-minimal-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.stat-minimal-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)) 
            drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.stat-minimal-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(255, 255, 255, 0.2);
}

/* ==========================================
   SECTION SPACER
   Spaziatura tra sezioni
   ========================================== */

.brand-page-section-spacer {
    height: var(--section-gap);
    width: 100%;
}

/* ==========================================
   SECTION TITLES - Stile unificato per tutti i titoli
   Collegano visivamente il titolo al box sottostante
   ========================================== */

.brand-description-title,
.brand-key-features-title,
.brand-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin: 0 0 1.25rem 0;
    padding-top: 0.25rem;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* First section title has no top margin */
.brand-section-box:first-child .brand-section-title,
.brand-collapsible-section:first-child .brand-section-title {
    margin-top: 0;
}

/* Prima sezione non ha margine sopra extra */
.brand-description-title:first-of-type {
    margin-top: 2rem;
}

/* ==========================================
   DESCRIPTION BOX
   Box centrato contenente la descrizione
   ========================================== */

.brand-description-box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: transparent;
    border: none;
}

/* Engraved/debossed text effect - like carved in stone */
.brand-page-description {
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 -1px 1px rgba(255, 255, 255, 0.03);
}

.brand-page-description h2,
.brand-page-description h3,
.brand-page-description h4 {
    text-shadow: 
        0 2px 3px rgba(0, 0, 0, 0.8),
        0 -1px 1px rgba(255, 255, 255, 0.04);
}

/* ==========================================
   DESCRIPTION
   Contenuto WYSIWYG auto-stilizzato
   Include: headings, paragraphs, lists, quotes
   ========================================== */

.brand-page-description {
    width: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: left;
}

/* Headings dentro la descrizione */
.brand-page-description h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0;
    border-bottom: none;
}

.brand-page-description h2:first-child {
    margin-top: 0;
}

.brand-page-description h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 1.75rem 0 0.75rem 0;
}

.brand-page-description h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 1.5rem 0 0.5rem 0;
}

/* Paragrafi */
.brand-page-description p {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}

.brand-page-description p:last-child {
    margin-bottom: 0;
}

.brand-page-description strong {
    color: #ffffff;
    font-weight: 600;
}

.brand-page-description em {
    color: rgba(255, 255, 255, 0.9);
}

/* Link */
.brand-page-description a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.brand-page-description a:hover {
    color: #E1BEE7;
    border-bottom-color: #E1BEE7;
}

/* Liste */
.brand-page-description ul,
.brand-page-description ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.brand-page-description li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.brand-page-description ul li::marker {
    color: rgba(255, 255, 255, 0.5);
}

.brand-page-description ol li::marker {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Blockquote */
.brand-page-description blockquote {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.brand-page-description blockquote p {
    margin: 0;
}

/* Immagini nella descrizione */
.brand-page-description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* Tabelle */
.brand-page-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.brand-page-description th,
.brand-page-description td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.brand-page-description th {
    background: rgba(156, 39, 176, 0.15);
    color: #ffffff;
    font-weight: 600;
}

.brand-page-description td {
    color: rgba(255, 255, 255, 0.85);
}

/* Codice */
.brand-page-description code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.brand-page-description pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.brand-page-description pre code {
    background: none;
    padding: 0;
}

/* ==========================================
   KEY FEATURES
   Tag/pill con le funzionalità principali
   Stile glassmorphism elegante
   ========================================== */

.brand-key-features-section {
    width: 100%;
    margin-bottom: var(--section-gap);
}

/* Key Features box style - già incluso in .brand-collapsible-section generale */

/* .brand-key-features-title stili in sezione SECTION TITLES */

.brand-key-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.brand-key-feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.brand-key-feature-item .feature-icon {
    font-size: 0.9rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.brand-key-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* ==========================================
   CONTENT TEXT
   Testo generico della pagina
   ========================================== */

.brand-page-content-text {
    color: #ffffff;
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.brand-page-content-text p {
    margin-bottom: 1.5rem;
}

/* ==========================================
   BACK LINK
   Link per tornare alla lista brands
   ========================================== */

.brand-page-back {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-page-back-link {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.brand-page-back-link:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(44, 44, 46, 0.75);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   MEDIA CONTAINER
   Immagine/Video principale del brand
   ========================================== */

.brand-page-media-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-page-image {
    width: 100%;
    max-width: 100%;
    max-height: 700px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 16px;
}

.brand-page-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.brand-page-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   CTA BUTTON
   Pulsante principale "GO TO [BRAND]"
   ========================================== */

.brand-page-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Pulsante finale dopo FAQ */
.brand-page-final-cta {
    margin-top: 1rem !important;
}

.brand-page-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background: var(--brand-accent-color, rgba(28, 28, 30, 0.6));
    border: 1px solid color-mix(in srgb, var(--brand-accent-color, #ffffff) 30%, transparent);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 25px color-mix(in srgb, var(--brand-accent-color, transparent) 40%, transparent);
}

.brand-page-button:hover:not(:disabled) {
    background: color-mix(in srgb, var(--brand-accent-color, #ffffff) 110%, #000);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 35px color-mix(in srgb, var(--brand-accent-color, transparent) 60%, transparent);
    transform: translateY(-2px);
    color: #ffffff;
    border-color: color-mix(in srgb, var(--brand-accent-color, #ffffff) 50%, transparent);
}

.brand-page-button:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

/* ==========================================
   STICKY CTA BUTTON
   Bottone CTA che appare in basso quando scrolli
   ========================================== */

.brand-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.brand-sticky-cta.visible {
    transform: translateY(0);
}

.brand-sticky-cta-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-sticky-cta-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-sticky-cta-button {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background: var(--brand-accent-color, #4A90E2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px color-mix(in srgb, var(--brand-accent-color, #000) 60%, #000),
        0 0 20px color-mix(in srgb, var(--brand-accent-color, transparent) 40%, transparent);
    white-space: nowrap;
}

.brand-sticky-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px color-mix(in srgb, var(--brand-accent-color, #000) 70%, #000),
        0 0 30px color-mix(in srgb, var(--brand-accent-color, transparent) 60%, transparent);
    color: #ffffff;
    background: color-mix(in srgb, var(--brand-accent-color, #ffffff) 110%, #000);
}

/* ==========================================
   MADE WITH BOX
   Sezione "Generated Content" con gallery
   ========================================== */

.brand-made-with-box {
    width: 100%;
    max-width: var(--box-max-width);
    margin: var(--section-gap) auto 0;
    padding: var(--box-padding-desktop);
    background: rgba(28, 28, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: none;
    border-radius: var(--box-border-radius);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.brand-made-with-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    pointer-events: none;
}

.made-with-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.made-with-section-title,
.made-with-title {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Gallery Grid */
.made-with-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.made-with-image-card {
    width: 100%;
    min-height: 400px;
    background: rgba(28, 28, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.made-with-image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: rgba(44, 44, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.made-with-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease;
}

.made-with-image-card:hover .made-with-image {
    transform: scale(1.05);
}

.made-with-empty-message {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}

.made-with-empty-message p {
    margin: 0;
}

/* ==========================================
   RELATED BRANDS SECTION
   Sezione brand correlati in fondo alla pagina
   ========================================== */

.related-brands-section {
    width: 100%;
    margin: var(--section-gap) auto 0;
    padding: 0;
}

.related-brands-container {
    max-width: var(--box-max-width);
    margin: 0 auto;
    padding: 2.5rem;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.related-brands-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 0 0 3rem 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.related-brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--box-max-width);
    margin: 0 auto;
}

/* Related Brand Card */
.related-brand-card {
    position: relative;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius-mobile);
    padding: 2rem;
    padding-top: 2.5rem;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.related-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: rgba(44, 44, 46, 0.75);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Related Brand Badge */
.related-brand-badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Badge Color Variants */
.related-brand-badge-popular {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.related-brand-badge-new {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    color: #fff;
}

.related-brand-badge-top-rated {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    color: #fff;
}

.related-brand-badge-editor-choice {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: #fff;
}

.related-brand-badge-free {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    color: #fff;
}

.related-brand-badge-premium {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #000;
}

/* Related Brand Image */
.related-brand-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: var(--box-border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
}

.related-brand-image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.related-brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--box-border-radius);
}

/* Related Brand Name */
.related-brand-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.related-brand-name a {
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        var(--brand-accent-color, #ffffff) 50%, 
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.related-brand-name a:hover {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.related-brand-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

/* Related Brand Button */
.related-brand-button {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background: var(--brand-accent-color, rgba(28, 28, 30, 0.6));
    border: 1px solid color-mix(in srgb, var(--brand-accent-color, #ffffff) 30%, transparent);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px color-mix(in srgb, var(--brand-accent-color, transparent) 30%, transparent);
}

.related-brand-button:hover {
    background: color-mix(in srgb, var(--brand-accent-color, #ffffff) 110%, #000);
    border-color: color-mix(in srgb, var(--brand-accent-color, #ffffff) 50%, transparent);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 30px color-mix(in srgb, var(--brand-accent-color, transparent) 50%, transparent);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ==========================================
   RESPONSIVE - TABLET (max 1024px)
   ========================================== */

@media (max-width: 1024px) {
    .brand-page-title {
        font-size: 2.5rem;
    }
    
    .brand-page-content {
        padding: var(--box-padding-desktop);
    }
    
    .made-with-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .made-with-image-card {
        min-height: 350px;
        padding: 0;
    }
    
    .brand-made-with-box {
        padding: var(--box-padding-desktop);
    }
    
    .related-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .related-brands-title {
        font-size: 2rem;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================== */

@media (max-width: 768px) {
    .brand-page-wrapper {
        padding: var(--page-padding-mobile);
    }
    
    .brand-page-container {
        padding: 0 0.5rem;
    }
    
    .brand-page-content {
        padding: 1.5rem 1rem;
        gap: 1rem;
        margin: 0 auto var(--section-gap-mobile);
    }
    
    .brand-page-title {
        font-size: 2rem;
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
    }
    
    .brand-page-badge-below-title {
        padding: 0.5rem 1.25rem;
        font-size: 0.65rem;
        letter-spacing: 1.5px;
        margin-bottom: 1.5rem;
    }
    
    .brand-page-media-container {
        margin: 0 auto var(--section-gap-mobile) auto;
    }
    
    .brand-page-section-spacer {
        height: var(--section-gap-mobile);
    }
    
    /* Stats minimal mobile */
    .brand-stats-minimal {
        gap: 1.5rem;
        margin: 0rem 0 1.5rem 0;
        flex-wrap: wrap;
    }
    
    .stat-minimal-item {
        gap: 0.4rem;
    }
    
    .stat-minimal-icon {
        font-size: 1.2rem;
    }
    
    .stat-minimal-value {
        font-size: 0.85rem;
    }
    
    .brand-page-badge {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.55rem;
        padding: 0.3rem 0.65rem;
    }
    
    /* Section Titles mobile */
    .brand-description-title,
    .brand-key-features-title,
    .brand-section-title {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin: 2rem 0 0.6rem 0;
    }
    
    .brand-description-title:first-of-type {
        margin-top: 1.5rem;
    }
    
    /* Description Box mobile */
    .brand-description-box {
        margin: 0 auto;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    /* Description mobile */
    .brand-page-description {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .brand-page-description h2 {
        font-size: 1.35rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .brand-page-description h3 {
        font-size: 1.15rem;
        margin: 1.25rem 0 0.5rem 0;
    }
    
    .brand-page-description ul,
    .brand-page-description ol {
        padding-left: 1.25rem;
    }
    
    .brand-page-description blockquote {
        padding: 1rem 1.25rem;
        margin: 1rem 0;
    }
    
    /* Key Features mobile */
    .brand-key-features-section {
        margin: 0;
    }
    
    /* .brand-key-features-title mobile in Section Titles mobile */
    
    .brand-key-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .brand-key-feature-item {
        padding: 0.65rem 0.85rem;
        font-size: 0.7rem;
        border-radius: 6px;
        gap: 0.4rem;
    }
    
    .brand-key-feature-item .feature-icon {
        font-size: 0.8rem;
    }
    
    /* Button mobile */
    .brand-page-button-container {
        margin-top: 0.25rem;
    }
    
    .brand-page-button {
        padding: 0.85rem 2rem;
        font-size: 0.85rem;
        letter-spacing: 1px;
        border-radius: 8px;
    }
    
    /* Sticky CTA mobile */
    .brand-sticky-cta {
        padding: 0.85rem 1rem;
    }
    
    .brand-sticky-cta-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .brand-sticky-cta-title {
        font-size: 0.95rem;
    }
    
    .brand-sticky-cta-button {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
    /* Made With mobile */
    .brand-made-with-box {
        padding: var(--box-padding-mobile);
        margin: var(--section-gap-mobile) auto 0;
    }
    
    .made-with-section-title,
    .made-with-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .made-with-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .made-with-image-card {
        min-height: 280px;
        padding: 0;
    }
    
    /* Related Brands mobile */
    .related-brands-section {
        margin: var(--section-gap-mobile) auto 0;
    }
    
    .related-brands-container {
        padding: 2rem 1.5rem;
    }
    
    .related-brands-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .related-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .related-brand-card {
        padding: 1.5rem;
        gap: 1.25rem;
    }
    
    .related-brand-image-container {
        height: 350px;
    }
    
    .related-brand-badge {
        top: -0.5rem;
        right: 0.75rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.65rem;
        border-radius: 6px;
    }
    
    .related-brand-name {
        font-size: 1.25rem;
    }
    
    .related-brand-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE (max 575px)
   ========================================== */

@media (max-width: 575px) {
    .related-brands-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery rimane a 2 colonne anche su mobile piccolo */
    .made-with-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .made-with-image-card {
        min-height: 180px; /* Più compatto su mobile piccolo */
    }
}

/* ==========================================
   SUMMARY BOX
   ========================================== */

/* Quick Overview box style - già incluso in .brand-collapsible-section generale */

.summary-box-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-top: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}

.summary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    transition: left 0.5s ease;
}

.summary-item:hover::before {
    left: 100%;
}

.summary-item:nth-child(1) { animation-delay: 0.1s; }
.summary-item:nth-child(2) { animation-delay: 0.15s; }
.summary-item:nth-child(3) { animation-delay: 0.2s; }
.summary-item:nth-child(4) { animation-delay: 0.25s; }
.summary-item:nth-child(5) { animation-delay: 0.3s; }
.summary-item:nth-child(6) { animation-delay: 0.35s; }
.summary-item:nth-child(7) { animation-delay: 0.4s; }
.summary-item:nth-child(8) { animation-delay: 0.45s; }

.summary-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-accent-color, rgba(255, 255, 255, 0.2));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(var(--brand-accent-color-rgb, 255, 255, 255), 0.1);
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.summary-icon {
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.summary-item:hover .summary-icon {
    transform: scale(1.2) rotate(5deg);
}

.summary-label::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-accent-color, rgba(255, 255, 255, 0.5));
    box-shadow: 0 0 8px var(--brand-accent-color, rgba(255, 255, 255, 0.5));
    flex-shrink: 0;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   KEY FEATURES ENHANCED
   ========================================== */

.brand-key-features-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    margin-top: 0;
}

.brand-key-feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.brand-key-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.feature-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   SPECS TABLE
   ========================================== */

.brand-specs-section {
    margin-bottom: var(--section-gap);
}

/* Specs box style - già incluso in .brand-collapsible-section generale */

.specs-table-wrapper {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0;
    margin-top: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}

.specs-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.specs-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0.5rem;
}

.specs-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.specs-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.brand-specs-table {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.brand-specs-table thead {
    display: table-header-group;
}

.brand-specs-table thead tr {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.spec-label-header,
.spec-value-header,
.spec-rating-header {
    padding: 0.875rem 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.02);
}

.spec-label-header {
    width: 28%;
    min-width: 140px;
}

.spec-value-header {
    width: 45%;
}

.spec-rating-header {
    width: 27%;
    min-width: 120px;
}

.brand-specs-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.brand-specs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.brand-specs-table tbody tr:last-child {
    border-bottom: none;
}

.brand-specs-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.brand-specs-table tbody tr:nth-child(even):hover {
    background: rgba(255, 255, 255, 0.05);
}

.spec-label {
    padding: 1rem 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-align: left;
    width: 28%;
    min-width: 140px;
    vertical-align: middle;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.spec-value {
    padding: 1rem 1rem;
    padding-left: 0.75rem;
    color: #ffffff;
    font-weight: 500;
    vertical-align: middle;
    font-size: 0.95rem;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.6;
    box-sizing: border-box;
    width: 45%;
}

.spec-rating {
    padding: 1rem 1rem;
    padding-left: 0.75rem;
    vertical-align: middle;
    text-align: left;
    width: 27%;
    min-width: 120px;
    box-sizing: border-box;
}

.spec-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--rating-color, rgba(255, 255, 255, 0.3));
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.spec-rating-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--rating-color, rgba(255, 255, 255, 0.1)) 0%, 
        transparent 100%
    );
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.spec-rating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px var(--rating-color, rgba(255, 255, 255, 0.2));
    border-color: var(--rating-color, rgba(255, 255, 255, 0.2));
}

.spec-rating-badge:hover::before {
    opacity: 0.25;
}

.rating-icon {
    font-size: 0.9rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.spec-rating-badge:hover .rating-icon {
    transform: scale(1.2) rotate(5deg);
}

.rating-label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Rating level specific colors */
.spec-rating-excellent {
    --rating-color: #10b981;
    border-left-color: #10b981;
}

.spec-rating-good {
    --rating-color: #3b82f6;
    border-left-color: #3b82f6;
}

.spec-rating-fair {
    --rating-color: #f59e0b;
    border-left-color: #f59e0b;
}

.spec-rating-basic {
    --rating-color: #6b7280;
    border-left-color: #6b7280;
}

/* ==========================================
   MAIN CTA BUTTON SECTION
   ========================================== */

.brand-main-cta-section {
    margin: 2rem 0;
    text-align: center;
    padding: 1.5rem;
    background: rgba(28, 28, 30, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.brand-main-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 4rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff !important;
    background: var(--brand-accent-color, #ffffff) !important;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 400px;
    width: 100%;
    max-width: 600px;
}

.brand-main-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    gap: 0.875rem;
}

.button-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    line-height: 1;
}

.brand-main-button:hover .button-arrow {
    transform: translateX(3px);
}

/* Sticky CTA for mobile */
@media (max-width: 767px) {
    .brand-main-cta-section {
        position: sticky;
        bottom: 0;
        z-index: 100;
        margin: 0;
        padding: 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .brand-main-button {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   OVERVIEW SECTION
   ========================================== */

.brand-overview-section {
    margin-bottom: 0;
}

.brand-overview-section.brand-section-box {
    margin-bottom: 1.25rem;
}

.brand-faq-section.brand-section-box {
    margin-bottom: 1.25rem;
}

.brand-page-description.truncated {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.brand-page-description.expanded {
    max-height: none;
}

.brand-read-more-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.brand-read-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   COLLAPSIBLE SECTIONS
   ========================================== */

/* Box leggero per sezioni interne - poco visibile */
.brand-section-box {
    margin-bottom: 0.875rem;
    background: rgba(28, 28, 30, 0.25);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.brand-collapsible-section {
    margin-bottom: 0.875rem;
    background: rgba(28, 28, 30, 0.25);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

/* Read More Button */
.section-read-more-btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.section-read-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.section-read-more-btn.expanded {
    background: rgba(255, 255, 255, 0.08);
}

.read-more-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.section-read-more-btn.expanded .read-more-icon {
    transform: rotate(180deg);
}

.summary-content-wrapper,
.features-content-wrapper,
.specs-content-wrapper,
.pros-cons-content-wrapper {
    padding-top: 0;
    animation: fadeIn 0.3s ease;
    display: block !important; /* Always visible, only items inside are hidden */
}

/* Preview items always visible (first 3) */
.summary-preview,
.feature-preview,
.pros-preview,
.cons-preview {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.spec-preview {
    display: table-row !important;
    opacity: 1;
    visibility: visible;
}

/* Hidden items (beyond first 3) - hidden by default, shown on expand */
.summary-hidden,
.feature-hidden,
.spec-hidden,
.pros-hidden,
.cons-hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

/* When item is shown via Read More button */
.summary-hidden.item-shown,
.pros-hidden.item-shown,
.cons-hidden.item-shown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeInUp 0.4s ease;
}

/* For grid items (features) - grid will handle layout, but card needs flex */
.brand-key-features-grid-enhanced .feature-hidden.item-shown,
.brand-key-feature-card.feature-hidden.item-shown {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeInUp 0.4s ease;
}

/* For table rows (specs) */
.spec-hidden.item-shown {
    display: table-row !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeInUp 0.4s ease;
}

/* Removed duplicate rules - using .item-shown class instead */

/* Preview items always visible */
.summary-preview,
.feature-preview,
.pros-preview,
.cons-preview {
    display: block !important;
}

.spec-preview {
    display: table-row !important;
}

/* Hidden items (beyond first 3) */
.summary-hidden,
.feature-hidden,
.spec-hidden,
.pros-hidden,
.cons-hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE - SUMMARY BOX & NEW SECTIONS
   ========================================== */

@media (max-width: 991px) {
    .summary-box-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .brand-key-features-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hide items beyond first 3 on mobile - show only first 3 for Quick Overview and Key Features */
    .summary-item.summary-preview[data-item-index="4"] {
        display: none !important;
    }
    
    .brand-key-features-grid-enhanced .brand-key-feature-card.feature-preview[data-feature-index="3"],
    .brand-key-features-grid-enhanced .brand-key-feature-card.feature-preview[data-feature-index="4"],
    .brand-key-features-grid-enhanced .brand-key-feature-card.feature-preview[data-feature-index="5"] {
        display: none !important;
    }
    
    .specs-table-wrapper {
        padding: 1.5rem;
    }
    
    .spec-label,
    .spec-value {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    /* Reduce gaps between boxes on mobile */
    .brand-page-content {
        gap: 0.625rem;
        padding: 1.5rem 1rem;
    }
    
    .brand-section-box,
    .brand-collapsible-section {
        margin-bottom: 0.625rem;
        padding: 1.25rem 1rem;
    }
    
    .brand-section-title {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin: 0 0 1rem 0;
        padding-top: 0;
    }
    
    .summary-box-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
    
    .brand-key-features-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
    
    /* Specs table mobile - proper HTML table with horizontal scroll */
    .specs-table-wrapper {
        padding: 0.5rem;
        margin: 0 -0.5rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }
    
    .brand-specs-table {
        width: 100%;
        min-width: 650px;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: fixed;
    }
    
    .brand-specs-table thead {
        display: table-header-group;
    }
    
    .brand-specs-table thead tr {
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    .spec-label-header,
    .spec-value-header,
    .spec-rating-header {
        padding: 0.75rem 0.75rem;
        font-size: 0.65rem;
    }
    
    .spec-label-header {
        width: 26%;
        min-width: 120px;
    }
    
    .spec-value-header {
        width: 42%;
    }
    
    .spec-rating-header {
        width: 32%;
        min-width: 100px;
    }
    
    .brand-specs-table tbody tr {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: background 0.3s ease;
    }
    
    .brand-specs-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.04);
    }
    
    .brand-specs-table tbody tr:last-child {
        border-bottom: none;
    }
    
    .brand-specs-table tbody tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.01);
    }
    
    .brand-specs-table tbody tr:nth-child(even):hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .spec-label {
        padding: 0.875rem 0.75rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.75);
        text-align: left;
        width: 26%;
        min-width: 120px;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.02);
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        box-sizing: border-box;
        vertical-align: middle;
    }
    
    .spec-value {
        padding: 0.875rem 0.75rem;
        padding-left: 0.625rem;
        color: #ffffff;
        font-weight: 500;
        font-size: 0.85rem;
        text-align: left;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        line-height: 1.5;
        box-sizing: border-box;
        vertical-align: middle;
        width: 42%;
    }
    
    .spec-rating {
        padding: 0.875rem 0.75rem;
        padding-left: 0.625rem;
        vertical-align: middle;
        text-align: left;
        width: 32%;
        min-width: 100px;
        box-sizing: border-box;
    }
    
    .spec-rating-badge {
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
        gap: 0.4rem;
    }
    
    .rating-icon {
        font-size: 0.8rem;
    }
    
    .rating-label {
        font-size: 0.7rem;
    }
    
    /* Duplicato rimosso - regole già definite sopra */
    
    /* Hide table-row display on mobile */
    .spec-hidden.item-shown {
        display: table-row !important;
    }
    
    .brand-main-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ==========================================
   CATEGORY TAGS
   ========================================== */

.brand-category-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    width: 100%;
}

.brand-category-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.brand-category-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.brand-category-tag:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.brand-category-tag:hover::before {
    left: 100%;
}

/* ==========================================
   RELATED ARTICLES SECTION
   ========================================== */

.related-articles-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.related-articles-container {
    width: 100%;
    max-width: var(--box-max-width);
    margin: 0 auto;
}

.related-articles-box {
    width: 100%;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius);
    padding: var(--box-padding-desktop);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.related-articles-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 1;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.related-article-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.related-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.related-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-article-card:hover .related-article-image {
    transform: scale(1.05);
}

.related-article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.related-article-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.related-article-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.related-article-card:hover .related-article-read-more {
    color: #ffffff;
}

/* ==========================================
   GENERATE PROMPTS CTA SECTION
   ========================================== */

.generate-prompts-cta-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.generate-prompts-cta-box {
    width: 100%;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius);
    padding: var(--box-padding-desktop);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.generate-prompts-cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.generate-prompts-cta-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.generate-prompts-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.generate-prompts-cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .related-articles-box {
        padding: var(--box-padding-mobile);
    }
    
    .related-articles-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .generate-prompts-cta-box {
        padding: var(--box-padding-mobile);
    }
    
    .generate-prompts-cta-title {
        font-size: 1.5rem;
    }
    
    .generate-prompts-cta-description {
        font-size: 0.9rem;
    }
    
    .generate-prompts-cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
}

