/* Variabili per colori freschi e moderni */
:root {
    --primary-color: #2d5a27; /* Verde natura */
    --accent-color: #e67e22; /* Arancio carota */
    --bg-light: #f9fbf9;
    --text-dark: #333;
    --white: #ffffff;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Header & Logo */
header {
    background: var(--white);
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-color);
    text-transform: lowercase;
}

.dante-motto {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 10px;
    color: #555;
    margin-bottom: 15px;
}

/* Bottone Filosofia */
.btn-filosofia {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-filosofia:hover {
    background: var(--primary-color);
    color: white;
}

/* Overlay LocalStorage & Filosofia */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 90, 39, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.overlay-content {
    background: var(--white);
    color: var(--text-dark);
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    margin: 20px;
}

.filosofia-box {
    max-width: 700px; /* Più larga per il testo della filosofia */
}

/* Accordion & Intro */
.intro-box {
    margin: 40px 0;
}

.accordion {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 20px;
    width: 100%;
    border: none;
    text-align: center;
    outline: none;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.4s;
}

.active, .accordion:hover {
    background-color: var(--accent-color);
}

.panel {
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-text {
    padding: 30px;
}

/* Cards Griglia Moschettieri */
.moschettieri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #f1f8f1;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Policy Section */
.policy-section {
    background: #eee;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 50px;
}

.title-accent {
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    margin-bottom: 20px;
}

.legal-references {
    margin-top: 20px;
    font-size: 0.9rem;
    background: #ddd;
    padding: 15px;
    border-radius: 5px;
}

/* Buttons */
.btn-primary {
    background: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .logo { font-size: 2rem; }
    .overlay-content { padding: 20px; }
}

/* Dashboard Layout */
.dash-container {
    padding: 50px 20px;
    min-height: 60vh;
}

.dash-card p {
    margin-bottom: 15px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dash-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.dash-card:hover {
    transform: translateY(-5px);
}

.dash-card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.dash-card.highlight {
    border: 2px solid var(--accent-color);
}

.btn-secondary {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
}

/* Scrollbox nell'overlay */
.scroll-box {
    max-height: 400px; /* Aumentato per leggere meglio la filosofia */
    overflow-y: auto;
    text-align: left;
    padding: 15px;
    background: #f8f8f8;
    margin: 20px 0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.scroll-box p {
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Form Sezione */
.form-container {
    max-width: 450px;
    margin: 40px auto;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.form-container h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"],
.form-container input[type="number"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
}

@media (max-width: 600px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .form-container { margin: 20px 10px; padding: 20px; }
}