/* Variabili CSS personalizzabili dall'amministratore */
:root {
    /* Colori principali */
    --primary-color: #8B7355;    /* Marrone caldo */
    --secondary-color: #D2B48C;  /* Tan chiaro */
    --accent-color: #5C4033;     /* Marrone scuro */
    --menu-color: #E8DCC4;      /* Colore del menu */
    --footer-color: #E8DCC4;    /* Colore del footer */
    --hero-inner-start: #8B7355; /* Colore iniziale hero interna */
    --hero-inner-middle: #D2B48C; /* Colore centrale hero interna */
    --hero-inner-end: #8B7355;   /* Colore finale hero interna */
    
    /* Testi */
    --text-color: #463E3F;       /* Grigio scuro caldo */
    --heading-color: #2F1810;    /* Marrone molto scuro per titoli */
    --link-color: var(--accent-color);
    
    /* Sfondi */
    --bg-light: #FFF8DC;         /* Beige chiaro */
    --bg-dark: #8B7355;          /* Marrone caldo */
    
    /* Bordi e ombre */
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px rgba(139, 115, 85, 0.1);
    
    /* Spaziature */
    --section-padding: 4rem;
    --card-padding: 1.5rem;
}

/* Stili generali */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text-color);
    background-color: var(--bg-light);
    position: relative;
    z-index: 0;
    /* Pattern di sfondo - URL corretto */
    background-image: url('/sito2000-v3/images/pattern-bg.png');
    background-repeat: repeat;
    background-size: 200px;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

/* Pattern di sfondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/sito2000-v3/images/pattern-bg.png');
    background-repeat: repeat;
    background-size: 200px;
    background-attachment: fixed;
    background-blend-mode: overlay;
    opacity: 0.15; /* Controlliamo la visibilità */
    z-index: -2; /* Mettiamo sotto l'overlay */
}

/* Overlay per migliorare la leggibilità */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 248, 220, 0.85);
    z-index: -1;
}

main {
    flex: 1 0 auto;
}

/* Personalizzazione navbar */
.navbar {
    background-color: var(--menu-color) !important;
    box-shadow: var(--box-shadow);
}

.navbar-brand img {
    transition: transform .2s;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--accent-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(139, 115, 85, 0.1); /* Hover effect sottile */
    border-radius: var(--border-radius);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 30px;
    }
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 2rem 2rem;
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 0 0 2rem 2rem;
}

.hero-section h1,
.hero-section p {
    position: relative;
    z-index: 1;
    color: #fff !important; /* Forziamo il colore del testo a bianco */
}

.hero-section h1 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-section .lead {
    color: var(--text-color);
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Hero Section per pagine interne */
.hero-section-inner {
    color: #fff !important; /* Forza il colore del testo a bianco */
    margin-bottom: 2rem;
    background: linear-gradient(
        135deg,
        var(--hero-inner-start) 0%,
        var(--hero-inner-middle) 50%,
        var(--hero-inner-end) 100%
    ) !important; /* Forza l'applicazione del gradiente */
    min-height: 200px;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-section-inner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    color: #fff !important;
}

.hero-section-inner .lead {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    color: #fff !important;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: var(--menu-color) !important;
    border-radius: 2rem;
    margin: 2rem 0;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(139, 115, 85, 0.2);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary-color);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--heading-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-color);
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

footer a {
    color: var(--footer-text);
    text-decoration: none;
}

footer a:hover {
    color: var(--footer-text);
    opacity: 0.8;
}

/* Privacy Page */
.privacy-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.privacy-text {
    color: var(--text-color);
    line-height: 1.8;
}

.privacy-text h2 {
    color: var(--heading-color);
    margin: 2rem 0 1rem;
}

.privacy-text p {
    margin-bottom: 1.5rem;
}

/* Contact Page */
.contact-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/sito2000-v3/images/map-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
}

.contact-content h2 {
    color: var(--heading-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.contact-info h3 {
    color: var(--heading-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 2rem;
    text-align: center;
}

.contact-info a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

/* Stili per i pulsanti di contatto */
.contact-actions {
    display: none; /* Nascosti di default */
}

/* Mostra i pulsanti solo su mobile */
@media (max-width: 768px) {
    .contact-actions {
        display: flex !important;
    }

    .contact-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 120px;
    }

    .contact-actions .btn-outline-success {
        color: #25D366;
        border-color: #25D366;
    }

    .contact-actions .btn-outline-success:hover {
        background-color: #25D366;
        color: white !important;
        text-decoration: none !important;
    }

    .contact-actions .btn-outline-primary:hover {
        color: white !important;
        text-decoration: none !important;
    }
} 