/* templates/style_minimal.css - Tema Minimalista v1.0 */
:root {
    --primary-color: #4a90e2; /* Blu più soft */
    --secondary-color: #888; /* Grigio per CTA */
    --text-color: #333;
    --bg-color: #ffffff; /* Sfondo bianco */
    --card-bg: #fdfdfd; /* Card quasi bianche */
    --shadow: 0 4px 15px rgba(0,0,0,0.05); /* Ombra molto leggera */
    --border-radius: 8px; /* Meno arrotondato */
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.65;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding-top: 65px; /* Spazio ridotto per navbar */
}

/* --- Menu --- */
.navbar {
    background: var(--card-bg);
    box-shadow: 0 1px 5px rgba(0,0,0,0.08); /* Ombra navbar ridotta */
    padding: 0.6rem 1.5rem;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand img.nav-logo { max-height: 30px; 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: 500; font-size: 0.95em; transition: color 0.2s ease; }
.nav-links-desktop a:hover { color: var(--primary-color); }
.nav-links-desktop .nav-button a { background-color: var(--secondary-color); color: #fff; padding: 0.4rem 0.9rem; border-radius: 4px; font-weight: 600; }
.nav-links-desktop .nav-button a:hover { background-color: #666; color: #fff; }
.navbar-toggler { display: block; background: none; border: 1px solid #ddd; border-radius: 4px; padding: 0.4rem 0.6rem; font-size: 1.3rem; cursor: pointer; line-height: 1; }
@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.05); 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: 500; display: block; padding: 0.6rem 0.4rem; border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease; font-size: 0.95em; }
.nav-links-mobile a:hover { background-color: #f0f0f0; color: var(--primary-color); }
.nav-links-mobile .nav-button { width: 100%; margin-top: 0.5rem; }
.nav-links-mobile .nav-button a { background-color: var(--secondary-color); color: #fff; padding: 0.6rem 1rem; border-radius: 4px; font-weight: 600; text-align: center; width: 100%; box-sizing: border-box; }
.nav-links-mobile .nav-button a:hover { background-color: #666; color: #fff; }

/* --- Layout Grid --- */
.container {
    max-width: 1140px;
    margin: 30px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
@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; /* RIMOSSO position: sticky; */ align-self: start; min-width: 0; }
}

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

/* --- Hero --- */
.hero { display: grid; grid-template-columns: 1fr; gap: 15px; align-items: center; border: none; box-shadow: none; background: none; }
@media (min-width: 768px) { .hero { grid-template-columns: 1fr 1fr; } }
.hero-image { text-align: center; padding: 15px; display: flex; align-items: center; justify-content: center; }
.hero-image img { max-width: 100%; max-height: 300px; height: auto; border-radius: 6px; object-fit: contain; }
.hero-info { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.hero-info .product-title { font-size: 1.7em; line-height: 1.3; color: #222; margin: 0 0 8px 0; font-weight: 600; }
.hero-summary { font-size: 1em; line-height: 1.6; margin-top: 0; margin-bottom: 15px; color: #555; }
.price { font-weight: 600; color: var(--primary-color); line-height: 1.2; margin-bottom: 20px; }
.hero-info .price { font-size: 2em; text-align: left; }
.buy-button { display: inline-block; background-color: var(--secondary-color); color: #fff; padding: 10px 20px; font-size: 1em; font-weight: 600; text-decoration: none; border-radius: 4px; text-align: center; transition: all 0.2s ease; border: none; cursor: pointer; align-self: flex-start; }
.buy-button:hover { background-color: #666; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }

/* --- Contenuto --- */
.content { font-size: 1em; padding: 25px; word-wrap: break-word; }
.content h1 { font-size: 1.9em; font-weight: 600; line-height: 1.3; color: #111; margin: 0 0 20px 0; }
.content h2 { font-size: 1.5em; font-weight: 600; line-height: 1.4; margin-top: 1.6em; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid #ddd; }
.content h3 { font-size: 1.2em; font-weight: 600; color: #222; margin-top: 1.4em; margin-bottom: 8px; }
.content p { margin-bottom: 1em; }
.content strong { color: #000; font-weight: 600; }
.content .img-fluid-content { max-width: 100%; height: auto; border-radius: 6px; margin: 20px auto; display: block; box-shadow: 0 3px 10px rgba(0,0,0,0.06); }

/* --- Q&A --- */
.qa-section { padding: 25px; }
.qa-section h2 { font-size: 1.6em; margin-bottom: 20px; font-weight: 600; }
.qa-item { margin-bottom: 15px; border-left: 3px solid var(--primary-color); padding-left: 12px; }
.qa-item strong { display: block; font-size: 1em; font-weight: 600; margin-bottom: 4px; }

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

/* --- Widget Prezzo Sidebar --- */
.price-widget .price-sidebar { font-size: 1.8em; margin-bottom: 0; color: var(--primary-color); line-height: 1.2; text-align: center; }
.price-widget-img { max-width: 100px; height: auto; margin-bottom: 12px; border-radius: 4px; border: 1px solid #eee; display: block; margin-left: auto; margin-right: auto; }
.marketplace-item { display: flex; flex-direction: column; align-items: center; margin-bottom: 15px; gap: 8px; }
.price-details { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; flex-wrap: wrap; }
.amazon-logo { font-size: 35px; color: #232F3E; line-height: 1; }
.buy-button-sidebar { width: 100%; box-sizing: border-box; font-size: 1em; padding: 10px 15px; }

/* --- Footer --- */
footer { text-align: center; margin-top: 30px; padding: 25px 15px; background: #f1f1f1; color: #777; font-size: 0.85em; border-top: 1px solid #ddd; }
.footer-content { max-width: 1140px; margin-left: auto; margin-right: auto; }
footer p { margin: 0.4rem 0; }

/* --- Mobile CTA --- */
.mobile-cta-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card-bg); padding: 0.8rem; box-shadow: 0 -1px 8px rgba(0,0,0,0.1); z-index: 998; border-top: 1px solid #eee; box-sizing: border-box; }
.mobile-cta-bar .buy-button { width: 100%; padding: 0.8rem; font-size: 1.1em; align-self: center; box-sizing: border-box; }
@media (max-width: 991.98px) {
    .mobile-cta-bar { display: block; }
    body { padding-bottom: 80px; }
}