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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: #2c3e50;
    background: #f5f5f5;
}

/* Color Palette */
:root {
    --bordeaux: #8B1538;
    --bordeaux-light: #A83C5A;
    --navy: #1e3a5f;
    --navy-light: #2c5282;
    --grey-dark: #4a5568;
    --grey-medium: #718096;
    --grey-light: #e2e8f0;
    --white: #ffffff;
    --accent: #cbd5e0;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    font-weight: 400;
    color: var(--navy);
}

/* Header */
header {
    background: var(--white);
    border-bottom: 3px solid var(--bordeaux);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.5px;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}

.logo-subtitle {
    font-size: 0.65em;
    color: var(--grey-medium);
    font-weight: 400;
    margin-top: 5px;
}

.header-contact {
    color: var(--grey-dark);
    font-size: 0.95em;
    text-align: right;
}

/* Navigation Menu */
.nav-menu {
    background: var(--white);
    border-bottom: 1px solid var(--grey-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.nav-link:hover {
    color: var(--bordeaux);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 100px 40px;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 25px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.5px;
}

.hero .subtitle {
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.6;
}

.hero .description {
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    background: transparent;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--navy);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: var(--grey-dark);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--bordeaux);
    margin: 0 auto 30px;
}

/* Values Section */
.values-section {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.value-card {
    background: linear-gradient(135deg, #f8f9fa 0%, var(--white) 100%);
    padding: 40px 30px;
    border-radius: 8px;
    border-left: 4px solid var(--bordeaux);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.value-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--navy);
}

.value-card p {
    color: var(--grey-dark);
    line-height: 1.8;
}

/* Services Section */
.services-section {
    background: #fafafa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 3px solid var(--bordeaux);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--navy);
}

.service-card p {
    color: var(--grey-dark);
    line-height: 1.7;
    font-size: 0.98em;
}

.service-card ul {
    margin-top: 15px;
    padding-left: 20px;
    color: var(--grey-dark);
}

.service-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Approach Section */
.approach-section {
    background: var(--white);
}

.approach-content {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 60px 50px;
    border-radius: 8px;
    margin-top: 40px;
}

.approach-content h3 {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--white);
}

.approach-content p {
    font-size: 1.15em;
    line-height: 1.9;
    margin-bottom: 20px;
    opacity: 0.95;
}

.approach-highlight {
    background: rgba(255,255,255,0.15);
    padding: 30px;
    border-radius: 6px;
    border-left: 4px solid var(--bordeaux);
    margin-top: 30px;
}

.approach-highlight strong {
    font-size: 1.2em;
    display: block;
    margin-bottom: 15px;
}

/* Adeguati Assetti Banner */
.adeguati-assetti-banner {
    background: var(--white);
    padding: 60px 40px;
    border-top: 4px solid var(--bordeaux);
    border-bottom: 4px solid var(--bordeaux);
}

.banner-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 2.2em;
    color: var(--bordeaux);
    margin-bottom: 20px;
    font-weight: 500;
}

.banner-content p {
    font-size: 1.2em;
    color: var(--grey-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

.banner-button {
    display: inline-block;
    background: var(--bordeaux);
    color: var(--white);
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.2);
}

.banner-button:hover {
    background: var(--bordeaux-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.35);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 40px;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    color: var(--white);
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 15px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--bordeaux);
    padding: 18px 50px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s ease;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--grey-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.contact-item {
    background: rgba(255,255,255,0.15);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.contact-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.contact-item div {
    text-align: center;
    word-break: normal;
    overflow-wrap: break-word;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--white);
    opacity: 1;
    margin-top: 5px;
    font-weight: 400;
}

.icon-contact {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: block;
    opacity: 1;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.95em;
}

/* Footer */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    opacity: 0.9;
}

footer a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero .subtitle {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 2em;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .header-contact {
        text-align: center;
    }

    .nav-content {
        gap: 20px;
    }
}

/* Area Riservata Button */
.header-auth {
    display: flex;
    align-items: center;
}

.btn-area-riservata {
    background: var(--bordeaux);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-area-riservata:hover {
    background: var(--bordeaux-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 21, 56, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--navy);
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.close {
    color: var(--grey-medium);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--bordeaux);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--grey-light);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--bordeaux);
}

.btn-login {
    width: 100%;
    background: var(--bordeaux);
    color: var(--white);
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.btn-login:hover {
    background: var(--bordeaux-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 21, 56, 0.3);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}

@media (max-width: 768px) {
    .header-auth {
        margin-top: 15px;
    }

    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
    }
}
