/* templates/style_classic.css - Tema Blog Classico v1.1 */
:root {
    --primary-color: #333; /* Nero/Grigio scuro */
    --secondary-color: #777; /* Grigio medio */
    --text-color: #333;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --shadow: 0 2px 5px rgba(0,0,0,0.08); /* Ombra minima */
    --border-radius: 4px; /* Angoli poco arrotondati */
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif; /* Font corpo */
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding-top: 70px; /* Spazio per navbar fissa (necessario per siti generati) */
}

h1, h2, h3 {
    font-family: 'Merriweather', serif; /* Font Serif per titoli */
    font-weight: 700;
    color: #111;
}

/* --- Menu --- */
.navbar {
    background: var(--card-bg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 0.75rem 1.5rem;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.nav-brand img.nav-logo { max-height: 35px; width: auto; display: block; padding: 5px 0; }
.nav-links-desktop { list-style: none; margin: 0; padding: 0; display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 992px) { .nav-links-desktop { display: flex; } }
.nav-links-desktop a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: color 0.2s ease; }
.nav-links-desktop a:hover { color: var(--secondary-color); }
/* Modifica bottone per Worldfilia (usa primary color) */
.nav-links-desktop .nav-button a {
    background-color: var(--primary-color); /* Cambiato da secondary */
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 700;
}
.nav-links-desktop .nav-button a:hover {
    background-color: #555; /* Grigio scuro hover */
    color: #fff;
}

.navbar-toggler { display: block; background: none; border: 1px solid #ccc; border-radius: 4px; padding: 0.5rem 0.75rem; font-size: 1.5rem; cursor: pointer; line-height: 1; color: var(--text-color); }
@media (min-width: 992px) { .navbar-toggler { display: none; } }
.navbar-collapse { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: var(--card-bg); box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 999; }
.navbar-collapse.show { display: block; }
.nav-links-mobile { list-style: none; margin: 0; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.nav-links-mobile li { width: 100%; }
.nav-links-mobile a { text-decoration: none; color: var(--text-color); font-weight: 600; display: block; padding: 0.75rem 0.5rem; border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease; }
.nav-links-mobile a:hover { background-color: #f0f0f0; color: var(--secondary-color); }
.nav-links-mobile .nav-button { width: 100%; margin-top: 0.5rem; }
/* Modifica bottone mobile per Worldfilia */
.nav-links-mobile .nav-button a {
    background-color: var(--primary-color); /* Cambiato da secondary */
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.nav-links-mobile .nav-button a:hover {
    background-color: #555; /* Grigio scuro hover */
    color: #fff;
}

/* Dropdown Menu Styles (copiato da template_classic.html.php) */
.nav-links-desktop .nav-dropdown { position: relative; }
.nav-links-desktop .nav-dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.nav-links-desktop .nav-dropdown .dropdown-menu { visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 0; background-color: var(--card-bg, #fff); min-width: 250px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: var(--border-radius, 4px); list-style: none; padding: 0.5rem 0; margin: 0; z-index: 1001; border: 1px solid #eee; max-height: 400px; overflow-y: auto; transition: visibility 0s linear 0.1s, opacity 0.1s linear; pointer-events: none; }
.nav-links-desktop .nav-dropdown:hover .dropdown-menu, .nav-links-desktop .nav-dropdown:hover::after { visibility: visible; opacity: 1; transition-delay: 0s; pointer-events: auto; }
.nav-links-desktop .nav-dropdown .dropdown-menu:hover { visibility: visible; opacity: 1; }
.nav-links-desktop .dropdown-menu a { padding: 0.75rem 1.25rem; display: block; white-space: nowrap; font-weight: 500; color: var(--text-color); }
.nav-links-desktop .dropdown-menu a:hover { background-color: #f0f0f0; color: var(--secondary-color); }
.nav-links-mobile .nav-dropdown-mobile .dropdown-toggle-mobile { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-links-mobile .dropdown-menu-mobile { list-style: none; padding-left: 1.5rem; margin: 0; display: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.nav-links-mobile .dropdown-menu-mobile.show { display: block; max-height: 500px; }
.nav-links-mobile .dropdown-menu-mobile a { font-size: 0.9em; padding: 0.5rem 0.5rem; font-weight: 500; }
.nav-links-mobile .arrow-down { transition: transform 0.3s ease; }
.nav-links-mobile .dropdown-toggle-mobile.open .arrow-down { transform: rotate(180deg); }


/* --- Layout Grid --- */
.container {
    max-width: 1100px; /* Layout leggermente più stretto */
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 992px) {
    .container { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); }
    main { grid-column: 1 / 2; min-width: 0; }
    aside { grid-column: 2 / 3; position: sticky; top: 100px; align-self: start; min-width: 0; }
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0; /* Bordo definito */
}

/* --- Hero --- */
.hero { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
@media (min-width: 768px) { .hero { grid-template-columns: 1fr 1fr; } }
.hero-image { text-align: center; padding: 20px; display: flex; align-items: center; justify-content: center; }
.hero-image img { max-width: 100%; max-height: 350px; height: auto; border-radius: 6px; object-fit: contain; border: 1px solid #eee; }
.hero-info { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.hero-info .product-title { font-size: 1.8em; line-height: 1.3; color: #111; margin: 0 0 10px 0; font-weight: 700; }
.hero-summary { font-size: 1.1em; line-height: 1.6; margin-top: 0; margin-bottom: 20px; color: #555; }
.price { font-weight: 700; color: var(--primary-color); line-height: 1.2; margin-bottom: 25px; }
.hero-info .price { font-size: 2.5em; text-align: left; }
/* Bottone Hero per Worldfilia */
.buy-button {
    display: inline-block;
    background-color: var(--primary-color); /* Colore primario */
    color: #fff; /* Testo bianco */
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    align-self: flex-start;
}
.buy-button:hover {
    background-color: #555; /* Grigio scuro hover */
}

/* --- Contenuto --- */
.content { font-size: 1.1em; padding: 30px; word-wrap: break-word; }
.content h1 { font-size: 2.0em; font-weight: 700; line-height: 1.3; color: #111; margin: 0 0 25px 0; text-align: center; }
.content h2 {
    font-size: 1.7em;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 2.5em; /* Più spazio sopra */
    margin-bottom: 1em; /* Più spazio sotto */
    padding-bottom: 0;
    border-bottom: none; /* Nessun bordo sotto */
    text-align: center; /* Titoli centrati */
}
.content h3 { font-size: 1.3em; font-weight: 700; color: #111; margin-top: 1.5em; margin-bottom: 10px; }
.content p { margin-bottom: 1.2em; }
.content strong { color: #000; font-weight: 600; }
.content .img-fluid-content { max-width: 100%; height: auto; border-radius: var(--border-radius); margin: 25px auto; display: block; box-shadow: var(--shadow); border: 1px solid #ddd; }

/* --- Q&A --- */
.qa-section { padding: 30px; }
.qa-section h2 { font-size: 1.8em; margin-bottom: 25px; font-weight: 700; text-align: center; }
.qa-item { margin-bottom: 20px; border-left: 4px solid #ccc; padding-left: 15px; }
.qa-item strong { display: block; font-size: 1.1em; font-weight: 700; margin-bottom: 5px; color: #111; }

/* --- Sidebar --- */
.sidebar-widget { padding: 25px; }
.sidebar-widget h3 { font-size: 1.5em; font-weight: 700; margin: 0 0 20px 0; padding-bottom: 10px; border-bottom: 1px solid #ddd; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 12px; font-size: 1em; line-height: 1.5; }
.sidebar-list li strong { color: #000; display: inline-block; margin-right: 5px; font-weight: 600; }

/* Widget Sidebar "Altri Prodotti Simili" (Worldfilia NON lo usa) */
.related-products-list a { text-decoration: none; color: var(--secondary-color); font-weight: 500; }
.related-products-list a:hover { text-decoration: underline; color: #555; }
.related-products-grid { display: flex; flex-direction: column; gap: 15px; }
.related-product-item { display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: center; padding: 10px; border: 1px solid #ddd; border-radius: var(--border-radius); text-decoration: none; transition: all 0.2s ease; background-color: #f7f7f7; }
.related-product-item:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: var(--primary-color); }
.related-product-img { width: 60px; height: 60px; object-fit: contain; border-radius: 4px; border: 1px solid #eee; background: #fff; }
.related-product-details { overflow: hidden; }
.related-product-title { font-size: 0.9em; font-weight: 600; color: var(--text-color); line-height: 1.3; max-height: 2.6em; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.related-product-price { font-size: 1em; font-weight: 700; color: var(--secondary-color); }

/* --- Widget Prezzo Sidebar --- */
.price-widget .price-sidebar { font-size: 2.0em; margin-bottom: 0; color: var(--primary-color); line-height: 1.2; text-align: center; }
.price-widget-img { max-width: 120px; height: auto; margin-bottom: 15px; border-radius: 6px; border: 1px solid #eee; display: block; margin-left: auto; margin-right: auto; }
.marketplace-item { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; gap: 10px; }
.price-details { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; flex-wrap: wrap; }
/* Rimuovi logo Amazon */
.price-details .fa-shopping-cart { font-size: 1.5em; color: #555; } /* Icona carrello generica */
.buy-button-sidebar { width: 100%; box-sizing: border-box; font-size: 1.1em; padding: 12px 20px; }

/* --- Footer --- */
footer { text-align: center; margin-top: 40px; padding: 30px 20px; background: #e0e0e0; color: #555; font-size: 0.9em; border-top: 1px solid #ccc; }
.footer-content { max-width: 1100px; margin-left: auto; margin-right: auto; }
footer p { margin: 0.5rem 0; }
.footer-legal-menu ul { list-style: none; padding: 0; margin: 10px 0; display: flex; justify-content: center; gap: 15px; }
.footer-legal-menu a { color: inherit; text-decoration: underline; }

/* --- Mobile CTA --- */
.mobile-cta-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card-bg); padding: 1rem; box-shadow: 0 -2px 5px rgba(0,0,0,0.1); z-index: 998; border-top: 1px solid #ddd; box-sizing: border-box; }
.mobile-cta-bar .buy-button { width: 100%; padding: 1rem; font-size: 1.2em; align-self: center; box-sizing: border-box; }
/* Icona carrello nel bottone mobile */
.mobile-cta-bar .buy-button .fa-shopping-cart { margin-right: 8px; }
@media (max-width: 991.98px) {
    .mobile-cta-bar { display: block; }
    body { padding-bottom: 90px; }
}

/* Link interno guida (specifico per template multi) */
.back-to-guide-link { text-decoration: none; font-weight: 600; color: var(--primary-color); display: inline-block; margin-bottom: 15px; font-size: 0.9em; }
.back-to-guide-link:hover { text-decoration: underline; color: var(--secondary-color); }