/* --- RESET E BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    color: #eae6df;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

/* Contenitore principale compatto */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* --- FIX LOGO SVG (Evita l'ingrandimento gigante) --- */
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo-svg {
    width: 60px;       /* Dimensione fissa corretta */
    height: 72px;
    max-width: 100%;
    display: inline-block;
}

/* --- CORNICI E DECORAZIONI GEOMETRICHE --- */
.corner-decor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(234, 230, 223, 0.3);
    pointer-events: none;
    z-index: 1;
}

.top-left { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.top-right { top: 15px; right: 15px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 15px; left: 15px; border-right: none; border-top: none; }
.bottom-right { bottom: 15px; right: 15px; border-left: none; border-top: none; }

/* --- HEADER E TESTATE --- */
.main-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-name {
    font-size: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    margin: 10px 0;
}

.tagline {
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
    margin: 10px 0;
}

.line-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 230, 223, 0.4), transparent);
    margin: 15px auto;
    width: 80%;
}

/* --- SEZIONE INTRO --- */
.intro {
    text-align: center;
    margin-bottom: 40px;
}

.intro h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.intro p {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
}

.services-divider {
    height: 1px;
    border-bottom: 1px dashed rgba(234, 230, 223, 0.2);
    margin: 30px 0;
}

/* --- GRIGLIA SERVIZI --- */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.service-card {
    flex: 1 1 350px;
    border: 1px solid rgba(234, 230, 223, 0.2);
    padding: 20px;
    background: rgba(255, 255, 255, 0.01);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.service-card p {
    font-size: 0.88rem;
    opacity: 0.8;
}

/* --- SEZIONE CASI STUDIO --- */
.case-studies-section {
    margin: 40px 0;
}

.case-studies-section h2 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.section-intro {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 25px;
}

.case-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.case-card {
    flex: 1 1 300px;
    border: 1px solid rgba(234, 230, 223, 0.2);
    padding: 20px;
    background: rgba(255, 255, 255, 0.01);
}

.case-tag {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 8px;
}

.case-card h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.case-problem, .case-solution {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
    opacity: 0.85;
}

.case-metrics {
    list-style: none;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(234, 230, 223, 0.2);
    display: flex;
    justify-content: space-between;
}

.case-metrics li {
    font-size: 0.8rem;
    opacity: 0.8;
}

.case-metrics strong {
    color: #eae6df;
    display: block;
    font-size: 1rem;
}

/* --- CALL TO ACTION (CTA) --- */
.cta-section {
    border: 1px solid rgba(234, 230, 223, 0.3);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    margin: 40px 0;
}

.cta-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.cta-text {
    font-size: 0.9rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #eae6df;
    color: #121212;
    border: 1px solid #eae6df;
}

.btn-secondary {
    background-color: transparent;
    color: #eae6df;
    border: 1px solid rgba(234, 230, 223, 0.4);
}

.corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid #eae6df;
}
.corner-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* --- FOOTER --- */
.main-footer {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 40px;
}

.contact-info {
    margin-bottom: 10px;
}

.legal-info {
    line-height: 1.5;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 600px) {
    .brand-name { font-size: 1.5rem; }
    .cta-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}