/* ============================================
   BASSA ROMAGNA CATERING - CSS
   Stile pulito ispirato a ristorazionescolastica.it
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #E65100;
    --primary-light: #FF8F00;
    --primary-dark: #BF360C;
    --text-dark: #263238;
    --text-medium: #546E7A;
    --text-light: #78909C;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --border: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

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

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary);
}

.nav a.active {
    color: var(--primary);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ============================================
   HERO / BANNER
   ============================================ */

.hero {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Page Title Section (below hero) */
.page-title {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-title p {
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* Page Hero (smaller, for internal pages) */
.page-hero {
    background: var(--primary);
    color: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 600;
}

.page-hero p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ============================================
   INFO SECTIONS (Homepage)
   ============================================ */

.info-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.info-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary);
}

.info-card p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.8;
}

.info-card.sustainability {
    border-left-color: var(--secondary);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   AMMINISTRAZIONE TRASPARENTE
   ============================================ */

.intro-text {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.intro-text p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.trasparenza-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.trasparenza-header {
    background: var(--bg-light);
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.trasparenza-header:hover {
    background: #F0F0F0;
}

.trasparenza-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.trasparenza-header .update-date {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 1rem;
}

.trasparenza-header .toggle-icon {
    color: var(--primary);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.trasparenza-section.open .toggle-icon {
    transform: rotate(180deg);
}

.trasparenza-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trasparenza-section.open .trasparenza-content {
    padding: 1.25rem;
    max-height: 2000px;
    border-top: 1px solid var(--border);
}

.trasparenza-content p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.trasparenza-content p:last-child {
    margin-bottom: 0;
}

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

.doc-list li {
    margin-bottom: 0.4rem;
}

.doc-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}

.doc-list a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.doc-list a::before {
    content: '📄';
    font-size: 0.9rem;
}

.doc-list a[href$=".pdf"]::before {
    content: '📕';
}

.doc-list a[href$=".xls"]::before,
.doc-list a[href$=".xlsx"]::before {
    content: '📊';
}

.not-applicable {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

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

.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2.5rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-section a {
    text-decoration: none;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1000px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

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

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav a {
        font-size: 0.85rem;
    }

    .hero {
        height: 60vh;
    }

    .page-title h1 {
        font-size: 1.8rem;
    }

    .main {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    .trasparenza-header {
        flex-wrap: wrap;
    }

    .trasparenza-header .update-date {
        margin-left: 0;
        width: 100%;
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .nav {
        gap: 0.75rem;
    }

    .nav a {
        font-size: 0.8rem;
    }

    .hero {
        height: 50vh;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    .page-title p {
        font-size: 0.95rem;
    }
}
