/*
Theme Name: AI Girlfriend Theme
Theme URI: https://ai-girlfriend-sites.com
Author: AI Girlfriend Sites
Author URI: https://ai-girlfriend-sites.com
Description: Lightweight custom theme for AI Girlfriend Sites with clean white design
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aigf-theme
*/

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

ul, ol {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

a {
    color: #d946ef;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #d946ef;
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    padding: 40px 0;
    min-height: 60vh;
}

section {
    margin-bottom: 3rem;
}

.content-area {
    background: #fff;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.header-btn-primary {
    background: #d946ef;
    color: #fff;
    border: 2px solid #d946ef;
}

.header-btn-primary:hover {
    background: #d946ef;
    border-color: #d946ef;
    color: #fff;
}

.header-btn-outline {
    background: transparent;
    color: #4b5563;
    border: 2px solid #d1d5db;
}

.header-btn-outline:hover {
    border-color: #d946ef;
    color: #d946ef;
}

/* Logo: AI Girlfriend Chats - Futura Medium, gradiente viola */
:root {
    --logo-font: 'Futura', 'Futura Std', 'Century Gothic', 'CenturyGothic', 'Apple Gothic', sans-serif;
    --logo-gradient: linear-gradient(90deg, #E879F9 0%, #D946EF 50%, #C026D3 100%);
}

.site-branding {
    margin-bottom: 0;
}

.site-logo-composite {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo-composite .site-logo-img,
.site-branding .site-logo-img {
    max-height: 35px;
    width: auto;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.site-logo-text {
    font-family: var(--logo-font);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-logo-placeholder {
    display: block;
    min-width: 40px;
    min-height: 48px;
    background: transparent;
    flex-shrink: 0;
}

/* ========================================
   NAVIGATION
   ======================================== */

.main-navigation {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #4b5563;
    font-weight: 500;
    padding: 8px 0;
    display: block;
}

.main-navigation a:hover {
    color: #d946ef;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-navigation li {
    position: relative;
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li {
    display: block;
}

.main-navigation .sub-menu a {
    padding: 8px 20px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 100px 40px;
    text-align: left;
    border-radius: 12px;
    margin-bottom: 40px;
}

/* Hero with gradient (homepage) */
.hero.hero-gradient {
    background: linear-gradient(90deg, #e879f9 0%, #d946ef 50%, #c026d3 100%);
    color: #fff;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero.hero-gradient h1 {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero.hero-gradient p,
.hero.hero-gradient .placeholder {
    color: rgba(255, 255, 255, 0.95);
}

.hero.hero-gradient .placeholder {
    opacity: 0.9;
}

.btn-hero-primary {
    background: #fff;
    color: #d946ef;
    border: 2px solid #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-hero-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #d946ef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8)!important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 850;
}

.last-updated-inline {
    color: #6b7280;
    font-size: 0.9rem;
    margin: -10px 0 25px;
    font-style: italic;
}

.last-updated-inline::before {
    content: "📅 ";
}

.hero p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 0 2rem 0;
}

.hero.hero-gradient p {
    max-width: 700px;
}

.hero .placeholder {
    text-align: left;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.section-intro {
    text-align: center;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #e879f9 0%, #c026d3 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e879f9 0%, #c026d3 100%);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #d946ef;
    border: 2px solid #d946ef;
}

.btn-secondary:hover {
    background: #d946ef;
    color: #fff;
    border-color: #d946ef;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-large small {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
}

.review-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #d946ef;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 2px solid #f5d0fe;
}

.card-badge.editors-pick {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #fbbf24;
    font-weight: 700;
}

.review-badge.editors-pick-large {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.2);
}

/* ========================================
   CARDS
   ======================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #dbeafe;
    color: #d946ef;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.card p {
    color: #6b7280;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Feature cards (Browse by Feature) - con padding */
.card.feature-card {
    padding: 25px;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table thead {
    background: #f9fafb;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    font-weight: 600;
    color: #1a1a1a;
}

.comparison-table tbody tr:hover {
    background: #f9fafb;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .site-name a {
    color: #d946ef;
    font-weight: 600;
    text-decoration: none;
}

.comparison-table .site-name a:hover {
    text-decoration: underline;
}

.comparison-table .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.comparison-table .features-list li {
    padding: 4px 0;
    color: #6b7280;
}

.comparison-table .features-list li:before {
    content: "✓ ";
    color: #10b981;
    font-weight: 600;
    margin-right: 5px;
}

.comparison-table .rating-cell .star-rating {
    margin: 0;
    padding: 8px 14px;
    font-size: 0.9rem;
}

.comparison-table .rating-cell .star-rating-stars {
    font-size: 16px;
}

.comparison-table .rating-cell .rating-number {
    font-size: 1rem;
}

.comparison-table .action-cell {
    text-align: center;
}

.table-responsive {
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.comparison-table-desktop .comparison-table {
    min-width: 600px;
}

/* Mobile: tabella uguale al desktop, scroll orizzontale contenuto nel suo riquadro */
.comparison-cards-mobile {
    display: none;
}

@media (max-width: 768px) {
    .table-responsive.comparison-table-desktop {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .table-responsive.comparison-table-desktop::-webkit-scrollbar {
        display: none;
    }
}

/* Mobile Comparison Cards */
.comparison-mobile-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-card-header {
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 15px;
}

.mobile-card-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.mobile-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.mobile-card-title a:hover {
    color: #d946ef;
}

.mobile-card-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #dbeafe;
    color: #d946ef;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mobile-card-body {
    padding: 15px 0;
}

.mobile-card-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-card-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mobile-card-label {
    font-weight: 700;
    color: #6b7280;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.mobile-card-value {
    color: #1a1a1a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mobile-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-features-list li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

.mobile-features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.mobile-card-rating .star-rating {
    margin: 0;
    display: inline-flex;
}

.mobile-card-footer {
    padding-top: 15px;
    border-top: 2px solid #e5e7eb;
    margin-top: 15px;
}

.mobile-card-footer .btn {
    display: block;
    width: 100%;
    text-align: center;
}

/* ========================================
   PROS & CONS
   ======================================== */

.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.pros-cons-box {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pros-cons-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

.pros-cons-box.pros {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.pros-cons-box.pros h3 {
    color: #059669;
}

.pros-cons-box.cons {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.pros-cons-box.cons h3 {
    color: #dc2626;
}

.pros-cons-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons-box li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pros-cons-box li:last-child {
    border-bottom: none;
}

.pros-cons-box.pros li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
    font-size: 1.3rem;
}

.pros-cons-box.cons li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: bold;
    font-size: 1.3rem;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-section {
    margin: 40px 0;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question-heading {
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    color: #1a1a1a;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: #d946ef;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 20px 20px;
}

.faq-answer p {
    color: #6b7280;
    line-height: 1.7;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    color: #9ca3af;
}

.breadcrumbs a {
    color: #6b7280;
}

.breadcrumbs a:hover {
    color: #d946ef;
}

.breadcrumbs .current {
    color: #1a1a1a;
}

/* ========================================
   RELATED RANKINGS
   ======================================== */

.related-rankings {
    margin: 50px 0;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
}

.related-rankings h3 {
    margin-top: 0;
}

.related-rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-ranking-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.related-ranking-card h4 {
    margin-top: 0;
    font-size: 1.1rem;
}

.related-ranking-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo-section {
    display: flex;
    align-items: flex-start;
}

.footer-logo-composite {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-logo-composite .footer-logo-img,
.footer-logo-section .footer-logo-img {
    max-height: 48px;
    width: auto;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.footer-logo-text {
    font-family: var(--logo-font);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo-placeholder {
    display: block;
    min-width: 40px;
    min-height: 48px;
    background: transparent;
    flex-shrink: 0;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #6b7280;
}

.footer-section a:hover {
    color: #d946ef;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .review-single {
        padding: 0 15px;
    }
    
    .btn {
        display: block;
        width: 100%;
    }
    
    .review-rating-large .star-rating-stars {
        font-size: 24px;
    }
    
    .review-rating-large .rating-number {
        font-size: 1.5rem;
    }
}

/* ========================================
   STAR RATING
   ======================================== */

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 12px 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.star-rating-stars {
    display: inline-flex;
    gap: 3px;
    font-size: 20px;
    line-height: 1;
}

.star-rating-stars .star {
    color: #d1d5db;
}

.star-rating-stars .star.filled {
    color: #fbbf24;
}

.rating-number {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.25rem;
}

/* Stelle dinamiche con riempimento parziale (uso globale) */
.star-rating-dynamic .star-rating-stars .star {
    color: #e2e8f0;
}
.star-rating-dynamic .star-rating-stars .star.filled {
    color: #f59e0b;
}
.star-rating-dynamic .star-rating-stars .star.star-partial {
    display: inline-block;
    position: relative;
    width: 1em;
    color: transparent;
}
.star-rating-dynamic .star-rating-stars .star.star-partial .star-bg,
.star-rating-dynamic .star-rating-stars .star.star-partial .star-fill {
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
}
.star-rating-dynamic .star-rating-stars .star.star-partial .star-bg {
    color: #e2e8f0;
}
.star-rating-dynamic .star-rating-stars .star.star-partial .star-fill {
    overflow: hidden;
    white-space: nowrap;
}
.star-rating-dynamic .star-rating-stars .star.star-partial .star-inner {
    color: #f59e0b;
}

.review-rating-large {
    margin: 25px 0;
}

.review-rating-large .star-rating {
    display: inline-flex;
    padding: 15px 25px;
}

.review-rating-large .star-rating-stars {
    font-size: 28px;
    gap: 5px;
}

.review-rating-large .rating-number {
    font-size: 1.75rem;
}

/* ========================================
   RANKING SPECIFIC
   ======================================== */

.ranking-position {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e879f9 0%, #c026d3 100%);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.ranking-item {
    position: relative;
}

/* ========================================
   FACTS GRID
   ======================================== */

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin: 25px 0;
    padding: 25px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.fact-item {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.fact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fact-item strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   FILTER SECTIONS
   ======================================== */

.filters-wrapper {
    margin: 20px 0;
}

.filter-active-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 14px 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    margin-bottom: 16px;
}
.filter-active-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #d946ef;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.filter-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}
.filter-clear-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: #d946ef;
    text-decoration: none;
}
.filter-clear-all:hover {
    text-decoration: underline;
}

.filters-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
}

.filters-title {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filter-details {
    border-bottom: 1px solid #f3f4f6;
}
.filter-details:last-of-type {
    border-bottom: none;
}

.filter-summary {
    display: flex;
    align-items: center;
    padding: 14px 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.filter-summary::-webkit-details-marker { display: none; }
.filter-summary::after {
    content: '+';
    margin-left: auto;
    font-size: 1.1rem;
    font-weight: 400;
    color: #9ca3af;
}
.filter-details[open] .filter-summary::after {
    content: '−';
}
.filter-summary:hover {
    color: #d946ef;
}

.filter-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 16px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter-chip:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}
.filter-chip-selected {
    background: #d946ef;
    border-color: #d946ef;
    color: #fff;
}
.filter-chip-selected:hover {
    background: #d946ef;
    border-color: #d946ef;
    color: #fff;
}
.filter-chip-active {
    background: #d946ef;
    border-color: #d946ef;
    color: #fff;
}
.filter-chip-active:hover {
    background: #d946ef;
    border-color: #d946ef;
    color: #fff;
}
.filter-count {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Filter mobile: horizontal scroll for chips */
@media (max-width: 768px) {
    .filters-wrapper {
        margin: 16px 0;
    }
    .filters-container {
        padding: 16px;
    }
    .filters-title {
        margin-bottom: 12px;
        font-size: 0.9375rem;
    }
    .filter-active-bar {
        padding: 12px 14px;
        gap: 10px;
    }
    .filter-active-label {
        width: 100%;
        margin-bottom: 4px;
    }
    .filter-chips-wrap {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 16px;
        padding-top: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filter-chips-wrap::-webkit-scrollbar {
        display: none;
    }
    .filter-chip {
        flex-shrink: 0;
        padding: 8px 14px;
        white-space: nowrap;
    }
    .filter-summary {
        padding: 12px 0;
        font-size: 0.9rem;
    }
    .filter-details {
        padding: 0 2px;
    }
}

/* ========================================
   GUIDE META
   ======================================== */

.guide-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 10px 0;
}

.guide-featured-image {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
}

.guide-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.guide-toc {
    margin: 30px 0;
}

.guide-toc .card {
    background: #f9fafb;
}

.guide-toc ul {
    list-style: none;
    padding: 0;
}

.guide-toc li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.guide-toc li:last-child {
    border-bottom: none;
}

.guide-toc a {
    color: #d946ef;
    text-decoration: none;
}

.guide-toc a:hover {
    text-decoration: underline;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
}

.key-takeaways li {
    padding: 8px 0 8px 30px;
    position: relative;
}

.key-takeaways li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   ARCHIVE & PAGINATION
   ======================================== */

.archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #d946ef;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #d946ef;
    color: #fff;
    border-color: #d946ef;
}

.pagination .current {
    background: #d946ef;
    color: #fff;
    border-color: #d946ef;
}

/* ========================================
   REVIEW SINGLE PAGE
   ======================================== */

.review-single {
    max-width: 900px;
    margin: 0 auto;
}

.review-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 40px;
}

.review-header h1 {
    margin-bottom: 15px;
}

.review-featured-image {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

.review-tagline {
    color: #6b7280;
    font-size: 1.15rem;
    margin: 15px 0;
}

.review-cta {
    margin: 25px 0;
}

.review-single section {
    margin-bottom: 50px;
}

.review-single section h2 {
    color: #1a1a1a;
    border-bottom: 3px solid #d946ef;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.review-single section h3 {
    color: #374151;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* ========================================
   REVIEW CARD SPECIFIC
   ======================================== */

.review-card {
    display: flex;
    flex-direction: column;
}

.review-card .card-footer {
    margin-top: auto;
}

.card-image {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.placeholder {
    background: #fffbeb;
    border: 2px dashed #f59e0b;
    border-radius: 8px;
    padding: 25px;
    color: #92400e;
    font-style: normal;
    margin: 20px 0;
    line-height: 1.8;
}

.placeholder strong {
    color: #78350f;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.placeholder ul {
    margin: 10px 0;
    padding-left: 20px;
}

.placeholder li {
    margin: 5px 0;
}

.review-excerpt {
    background: #f0f9ff;
    padding: 20px;
    border-left: 4px solid #d946ef;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #d946ef;
}

/* ========================================
   REVIEW CARD - MODERN DESIGN
   ======================================== */

.review-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.review-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.review-card .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 100px;
    color: white;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.review-card .card-badge.editors-pick {
    color: white;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.review-card .card-image {
    margin: 0;
    border-radius: 0;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.review-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover .card-image img {
    transform: scale(1.08);
}

.review-card-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px 0 24px;
    margin: 0 0 12px 0;
}
.review-card h3,
.review-card h3 a {
    color: #000;
}
.review-card h3 {
    padding: 0;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.review-card > p {
    padding: 0 24px 12px 24px;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #475569;
}

.review-card .star-rating {
    margin: 0 0 0 auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    gap: 8px;
}

.review-card .star-rating-stars {
    gap: 3px;
    font-size: 16px;
}

.review-card .star-rating-stars .star {
    color: #e2e8f0;
}

.review-card .star-rating-stars .star.filled {
    color: #f59e0b;
}

.review-card .rating-number {
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.review-card .card-footer {
    padding: 0 24px 24px 24px;
    margin-top: 20px;
    border-top: none;
    gap: 12px;
}

.review-card .card-footer .btn {
    flex: 1;
    text-align: center;
    font-weight: 700;
}

.review-card .card-footer .btn-primary {
    background: linear-gradient(135deg, #e879f9 0%, #c026d3 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.review-card .card-footer .btn-primary:hover {
    background: linear-gradient(135deg, #e879f9 0%, #c026d3 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.review-card .card-footer .btn-secondary {
    background: #f9fafb;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.review-card .card-footer .btn-secondary:hover {
    background: #fff;
    color: #d946ef;
    border-color: #d946ef;
}

/* Table of Contents - Minimal Style */
.guide-toc .card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 28px;
}

.guide-toc .card h2 {
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    font-size: 1.1rem;
    color: #111827;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: -0.01em;
}

.toc-nav {
    margin: 0;
}

.toc-list {
    list-style: decimal;
    list-style-position: inside;
    margin: 0;
    padding: 0;
}

.toc-list li {
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.toc-list li a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.15s ease;
    margin-left: 4px;
}

.toc-list li a:hover {
    color: #111827;
    text-decoration: underline;
}

/* Smooth scroll for TOC links */
html {
    scroll-behavior: smooth;
}

/* Add scroll margin to headings so they don't hide under header */
.guide-content h2[id] {
    scroll-margin-top: 100px;
}

/* Guide Cards (More Guides Section) */
.guide-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.guide-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f9fafb;
    position: relative;
}

.guide-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.guide-card:hover .guide-card-image img {
    transform: scale(1.05);
}

.guide-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.guide-card-image-placeholder .image-placeholder {
    font-size: 3rem;
    opacity: 0.4;
}

.guide-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.guide-card-meta {
    margin-bottom: 8px;
}

.guide-card-date {
    font-size: 0.8rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.guide-card-title {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 600;
}

.guide-card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.guide-card-title a:hover {
    color: #d946ef;
}

.guide-card-excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.guide-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.guide-card-footer .btn {
    width: 100%;
    justify-content: center;
}

/* Responsive adjustments for guide cards */
@media (max-width: 768px) {
    .guide-card-image {
        height: 180px;
    }
    
    .guide-card-title {
        font-size: 1.05rem;
    }
}

/* Tables Styling */
.content-wrapper table,
.guide-content table,
.review-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-wrapper table thead,
.guide-content table thead,
.review-content table thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.content-wrapper table th,
.guide-content table th,
.review-content table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.content-wrapper table td,
.guide-content table td,
.review-content table td {
    padding: 14px 16px;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid #f3f4f6;
}

.content-wrapper table tbody tr:last-child td,
.guide-content table tbody tr:last-child td,
.review-content table tbody tr:last-child td {
    border-bottom: none;
}

.content-wrapper table tbody tr:hover,
.guide-content table tbody tr:hover,
.review-content table tbody tr:hover {
    background: #f9fafb;
}

/* Column sizing based on data attributes */
.content-wrapper table th[data-col-size="sm"],
.content-wrapper table td[data-col-size="sm"],
.guide-content table th[data-col-size="sm"],
.guide-content table td[data-col-size="sm"],
.review-content table th[data-col-size="sm"],
.review-content table td[data-col-size="sm"] {
    width: 15%;
}

.content-wrapper table th[data-col-size="md"],
.content-wrapper table td[data-col-size="md"],
.guide-content table th[data-col-size="md"],
.guide-content table td[data-col-size="md"],
.review-content table th[data-col-size="md"],
.review-content table td[data-col-size="md"] {
    width: 25%;
}

.content-wrapper table th[data-col-size="xl"],
.content-wrapper table td[data-col-size="xl"],
.guide-content table th[data-col-size="xl"],
.guide-content table td[data-col-size="xl"],
.review-content table th[data-col-size="xl"],
.review-content table td[data-col-size="xl"] {
    width: 60%;
}

/* Responsive tables */
@media (max-width: 768px) {
    .content-wrapper table,
    .guide-content table,
    .review-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .content-wrapper table th,
    .content-wrapper table td,
    .guide-content table th,
    .guide-content table td,
    .review-content table th,
    .review-content table td {
        padding: 10px 12px;
        font-size: 0.875rem;
    }
}

/* ========================================
   REVIEW PAGES - MINIMAL MODERN DESIGN
   ======================================== */

.review-modern-wrapper {
    padding-bottom: 80px;
}

/* Hero unificata: stessa colonna di contenuto, titolo sopra la foto */
.review-hero-unified {
    margin-bottom: 40px;
}

.review-hero-unified .breadcrumbs {
    margin-bottom: 20px;
}

.review-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.review-badge-minimal {
    display: inline-block;
    padding: 6px 16px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
}

.review-badge-minimal.editors-pick {
    background: #fef3c7;
    color: #92400e;
}

.review-hero-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 20px;
}

.review-hero-rating {
    margin-left: auto;
}

.review-brand-favicon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.review-brand-favicon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-hero-unified .review-title-modern {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111827;
    margin: 0;
}

/* Hero rating: stelle dinamiche con riempimento parziale */
.review-hero-rating .star-rating {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 6px;
}

.review-hero-rating .star-rating-stars {
    gap: 2px;
    font-size: 22px;
}

.review-hero-rating .star-rating-stars .star {
    color: #e2e8f0;
}

.review-hero-rating .star-rating-stars .star.filled {
    color: #f59e0b;
}

/* Stella parziale: sfondo grigio + overlay giallo in base a fill */
.review-hero-rating .star-rating-stars .star.star-partial {
    display: inline-block;
    position: relative;
    width: 1em;
    color: transparent;
}

.review-hero-rating .star-rating-stars .star.star-partial .star-bg,
.review-hero-rating .star-rating-stars .star.star-partial .star-fill {
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
}

.review-hero-rating .star-rating-stars .star.star-partial .star-bg {
    color: #e2e8f0;
}

.review-hero-rating .star-rating-stars .star.star-partial .star-fill {
    overflow: hidden;
    white-space: nowrap;
}

.review-hero-rating .star-rating-stars .star.star-partial .star-inner {
    color: #f59e0b;
}

.review-hero-rating .rating-number {
    font-weight: 600;
    color: #64748b;
    font-size: 0.95rem;
    margin-left: 6px;
}

.btn-review-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #d946ef;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-review-primary:hover {
    background: #d946ef;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.review-content-area {
    padding: 56px 0;
}

.review-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.review-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 64px;
}

.review-main-content {
    order: 1;
}

.review-sidebar {
    order: 2;
}

.review-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.toc-modern {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.toc-title-modern {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin: 0 0 14px 0;
}

.toc-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item-h2 {
    margin: 0 0 2px 0;
}

.toc-item-h2 a {
    display: block;
    padding: 8px 0 8px 0;
    color: #111827;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.toc-item-h2 a:hover {
    background: #fff;
    color: #d946ef;
}

.quick-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
}

.quick-info-card h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin: 0 0 14px 0;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    color: #111827;
    font-weight: 600;
}

.review-main-content {
    max-width: 720px;
}

.review-image-modern {
    margin: 0 0 40px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    aspect-ratio: 16/9;
}

.review-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.content-section {
    margin: 0 0 56px 0;
    padding-bottom: 56px;
    border-bottom: 1px solid #f3f4f6;
}

.content-section:last-of-type {
    border-bottom: none;
}

.content-section h2 {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    margin: 0 0 20px 0;
    scroll-margin-top: 100px;
}

.content-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1f2937;
    margin: 28px 0 12px 0;
    scroll-margin-top: 100px;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin: 0 0 18px 0;
}

.content-section ul,
.content-section ol {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin: 0 0 18px 0;
    padding-left: 24px;
}

.pros-cons-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pros-modern,
.cons-modern {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
}

.pros-modern h3,
.cons-modern h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #111827;
}

.pros-modern ul,
.cons-modern ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-modern li,
.cons-modern li {
    padding-left: 22px;
    position: relative;
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.pros-modern li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.cons-modern li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 700;
}

.review-footer-cta-modern {
    margin: 56px 0 0 0;
}

.cta-card-modern {
    position: relative;
    background: linear-gradient(135deg, #e879f9 0%, #c026d3 100%);
    border-radius: 16px;
    padding: 44px;
    text-align: center;
    overflow: hidden;
}

.cta-card-modern-has-image {
    background-color: #d946ef;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 16px;
}

.cta-card-inner {
    position: relative;
    z-index: 1;
}

.cta-card-modern h3 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 22px 0;
}

.placeholder-minimal {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 14px 18px;
}

.placeholder-minimal p {
    margin: 0;
    font-size: 0.9rem;
    color: #92400e;
}

/* Sticky bottom bar */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-bottom-bar.visible {
    transform: translateY(0);
}

.sticky-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo: squircle (angoli molto arrotondati) come in Figma */
.sticky-bar-logo {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.sticky-bar-logo-placeholder {
    background: #111827;
}

.sticky-bar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-bar-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.sticky-bar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.sticky-bar-stars {
    display: flex;
    align-items: center;
}

.sticky-bar-stars .star-rating {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 2px;
}

.sticky-bar-stars .star-rating-stars {
    font-size: 15px;
}

/* Bottone a capsula (pill) come in Figma */
.sticky-bar-btn {
    padding: 12px 28px;
    background: #d946ef;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sticky-bar-btn:hover {
    background: #d946ef;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 1024px) {
    .review-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /* Sidebar spostata dopo Overview via JS */
    .review-sidebar {
        margin-top: 24px;
        margin-bottom: 24px;
    }
    .review-sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .review-hero-unified .review-title-modern {
        font-size: 1.75rem;
    }
    .review-content-area {
        padding: 40px 0;
    }
    .pros-cons-modern {
        grid-template-columns: 1fr;
    }
    .cta-card-modern {
        padding: 32px 24px;
    }
    .cta-card-modern-has-image {
        min-height: 220px;
        height: 220px;
    }
    .sticky-bar-content {
        padding: 10px 16px;
        gap: 12px;
    }
    .sticky-bar-logo {
        width: 40px;
        height: 40px;
    }
    .sticky-bar-brand {
        font-size: 1rem;
    }
    .sticky-bar-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* Tables inside review main content */
.review-main-content table,
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-main-content table thead,
.content-section table thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.review-main-content table th,
.review-main-content table td,
.content-section table th,
.content-section table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.review-main-content table th,
.content-section table th {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-main-content table td,
.content-section table td {
    color: #4b5563;
    font-size: 0.95rem;
}

.review-main-content table tbody tr:hover,
.content-section table tbody tr:hover {
    background: #f9fafb;
}

/* Simple Page template (Affiliate Disclosure, Contact Us, Privacy Policy) */
.simple-page .simple-page-content {
    margin-top: 1.5rem;
}
.simple-page .simple-page-content p {
    margin-bottom: 1rem;
}
.simple-page .simple-page-content ul,
.simple-page .simple-page-content ol {
    margin: 1rem 0 1rem 1.5rem;
}

/* ========================================
   MOBILE FIXES - Spazi laterali e accorgimenti
   ======================================== */

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    /* Container: spazi laterali generosi per evitare contenuto attaccato ai margini */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Safe area per iPhone con notch */
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    /* Header */
    .site-header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .header-inner {
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .main-navigation {
        display: none;
    }
    
    .site-branding {
        flex-shrink: 0;
    }
    
    .header-buttons {
        display: none;
    }
    
    /* Hero: padding ridotto ma con spazi laterali */
    .hero {
        padding: 48px 20px;
        margin-bottom: 32px;
    }
    
    .hero.hero-gradient {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .hero h1 {
        font-size: 30px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-cta .btn {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Content wrapper */
    .content-wrapper {
        padding: 24px 0;
    }
    
    /* Cards */
    .cards-grid {
        gap: 20px;
    }
    
    .card.feature-card {
        padding: 20px;
    }
    
    /* Comparison mobile cards */
    .comparison-mobile-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    /* Review page */
    .review-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    /* Footer */
    .site-footer {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .site-footer .container {
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer-content {
        gap: 32px;
        margin-bottom: 24px;
    }
    
    /* Sticky bottom bar */
    .sticky-bar-content {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
    
    /* Bottoni touch-friendly (min 44px) */
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-small {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* FAQ */
    .faq-question {
        padding: 16px 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-answer.active {
        padding: 0 20px 20px;
    }
    
    /* Breadcrumbs: scorrevole con le dita, senza barra di scroll visibile */
    .breadcrumbs {
        padding: 12px 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .breadcrumbs::-webkit-scrollbar {
        display: none;
    }
    
    .breadcrumbs ul {
        flex-wrap: nowrap;
        white-space: nowrap;
        display: inline-flex;
        width: max-content;
    }
    
    .breadcrumbs li {
        flex-shrink: 0;
    }
    
    /* Contenuti larghi nella review: scroll invece di espandere */
    .review-main-content iframe,
    .content-section iframe {
        max-width: 100%;
    }
    
    .review-main-content {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .review-image-modern {
        max-width: 100%;
        overflow: hidden;
    }
    
    .content-section {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    /* Stella singola + voto nella review hero (mobile) */
    .review-hero-rating .star-rating-stars .star:nth-child(n+2) {
        display: none;
    }
    
    /* Evitare overflow orizzontale su elementi larghi */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    pre, code, .wp-block-code {
        max-width: 100%;
        overflow-x: auto;
    }
    
    /* Placeholder / cards in page content */
    .placeholder {
        padding: 20px;
    }
}

/* Telefoni molto piccoli (< 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .hero.hero-gradient {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .hero h1 {
        font-size: 30px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .card.feature-card {
        padding: 20px;
    }
    
    .comparison-mobile-card {
        padding: 16px;
    }
    
}