/* Stili Generali */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Modern Gradient Background */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    color: #333; /* Darker text for better readability on light backgrounds */
}

.page-container {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Lighter border */
}

.logo-container {
    margin-bottom: 20px;
}

.site-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.header-title {
    font-size: 2.8em;
    color: #ffffff;
    margin: 15px 0 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.85); /* Lighter subtitle text */
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Griglia Servizi */
.services-grid-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    backdrop-filter: blur(10px);
    border-radius: 1rem; /* Rounded corners like login card */
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175); /* Soft shadow */
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer; /* Add cursor pointer */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1.5rem 4rem rgba(0,0,0,0.25);
}

.service-card .icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: #764ba2; /* Icon color from gradient */
    line-height: 1;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(118, 75, 162, 0.1);
    border-radius: 50%;
}

.service-card h3 {
    color: #333;
    font-size: 1.4em;
    margin: 0 0 10px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    flex-grow: 1;
}

/* CTA Box */
.cta-contact {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #ffffff;
    border-radius: 8px;
    padding: 18px 25px;
    margin: 30px auto 0;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-contact p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.9);
}

.cta-contact a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.cta-contact a:hover {
    text-decoration: underline;
}

/* Iframe Container */
#iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #fff; /* Fallback background */
}

#app-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Home Button */
#home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

/* Utility Class */
.hidden {
    display: none !important;
}


/* Media Queries */
@media (max-width: 1024px) {
    .header-title {
        font-size: 2.4em;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .header-title {
        font-size: 2em;
    }
}
