:root {
    --blue: #0066cc;
    --dark-blue: #003366;
    --light-blue: #eaf4ff;
    --grey: #f5f6f7;
    --text: #17324d;
    --border: #d9e2ec;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #ffffff;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.top-strip {
    background: var(--dark-blue);
    color: white;
    font-size: 14px;
    padding: 8px 0;
}

.main-header {
    background: var(--blue);
    color: white;
    padding: 28px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 18px;
}

.stemma-img {
    width: 110px;
    height: auto;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 6px;
}

.site-title {
    color: white;
    text-decoration: none;
}

.site-title:hover {
    text-decoration: underline;
}

.main-header h1 {
    margin: 0;
    font-size: 30px;
}

.main-header p {
    margin: 6px 0 0;
    font-size: 17px;
}

.nav-bar {
    background: white;
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    gap: 28px;
    padding: 16px 0;
}

.nav-content a {
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
}

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

.hero {
    background: linear-gradient(135deg, var(--light-blue), #ffffff);
    padding: 46px 0;
}

.hero-card {
    background: white;
    border-left: 8px solid var(--blue);
    padding: 36px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.breadcrumb {
    color: #5b6f82;
    font-size: 14px;
    margin-top: 0;
}

.hero-card h2,
.page-title h2 {
    font-size: 38px;
    margin: 10px 0 16px;
    color: var(--dark-blue);
}

.hero-card p,
.page-title p {
    font-size: 18px;
    line-height: 1.55;
}

.search-box {
    display: flex;
    margin-top: 28px;
    gap: 12px;
}

.search-box input {
    flex: 1;
    padding: 16px;
    border: 1px solid var(--border);
    font-size: 16px;
}

button {
    background: var(--blue);
    color: white;
    border: none;
    padding: 14px 24px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: var(--dark-blue);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 42px 0;
}

.info-card {
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 4px;
    background: white;
}

.info-card h3 {
    color: var(--dark-blue);
    margin-top: 0;
}

.info-card a {
    color: var(--blue);
    font-weight: bold;
    text-decoration: none;
}

.page-title {
    background: var(--grey);
    padding: 36px 0;
}

.filter-panel {
    margin-top: 32px;
    background: white;
    border: 1px solid var(--border);
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
}

input,
select {
    padding: 14px;
    border: 1px solid var(--border);
    font-size: 15px;
}

.empty-state {
    margin: 32px 0 80px;
    background: var(--light-blue);
    padding: 32px;
    border-radius: 4px;
}

.footer {
    background: var(--dark-blue);
    color: white;
    padding: 32px 0;
    margin-top: 60px;
    line-height: 1.6;
}

@media (max-width: 800px) {
    .section-grid {
        grid-template-columns: 1fr;
    }

    .form-row,
    .search-box {
        grid-template-columns: 1fr;
        display: grid;
    }

    .main-header h1 {
        font-size: 24px;
    }

    .hero-card h2,
    .page-title h2 {
        font-size: 30px;
    }
}

.footer-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.footer-icon {
    width: 56px;
    height: 56px;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.footer-text {
    line-height: 1.8;
    font-size: 15px;
}

.footer-link {
    color: #ffffff;
    font-weight: bold;
    text-decoration: underline;
}

.footer-link:hover {
    opacity: 0.85;
}

@media (max-width: 800px) {

    .footer-content {
        flex-direction: column;
    }

}
