/* ================================
   PRISMA SERVICE - STATIC SITE CSS
   ================================ */

:root {
    --primary-color: #1e40af;
    --secondary-color: #0891b2;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-bg: #1f2937;
    --light-bg: #f9fafb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ================================
   RESET & BASE STYLES
   ================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ================================
   NAVIGATION BAR
   ================================ */

.navbar {
    background: var(--dark-bg);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 56px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.logo-img:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.logo h1 {
    font-size: 1.3rem;
    margin: 0;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-cta {
    margin-left: 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    font-weight: 700;
}

.nav-cta:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* ================================
   BUTTONS
   ================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1e3a8a;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #0e7490;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    background: #000;
    color: white;
    padding: 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: block;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.carousel-background .carousel-container {
    width: 100%;
    height: 100%;
}

.carousel-background .carousel-slide img {
    height: 100%;
    object-fit: cover;
}

.carousel-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.carousel-background .carousel-button {
    z-index: 4;
    opacity: 0.6;
}

.carousel-background .carousel-button:hover {
    opacity: 1;
}

.carousel-background .carousel-dots {
    z-index: 4;
    position: absolute;
    bottom: 2rem;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    min-height: 600px;
    padding: 6rem 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-hero h1 {
    font-size: 2.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ================================
   FEATURES SECTION
   ================================ */

.features {
    padding: 3rem 0;
    background: var(--light-bg);
    margin-bottom: 3rem;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ================================
   INFO SECTION
   ================================ */

.info-section {
    padding: 3rem 0;
    text-align: center;
}

.section-title {
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.info-section h2 {
    margin-bottom: 1.5rem;
}

.info-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   CTA SECTION
   ================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin: 3rem 0;
    border-radius: 0.75rem;
}

.cta-section h2 {
    margin-bottom: 0.5rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ================================
   CAROUSEL SECTION
   ================================ */

.carousel-section {
    padding: 3rem 0;
    background: var(--light-bg);
    margin-bottom: 3rem;
    display: none;
}

.carousel-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-wrapper.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    height: 100%;
    z-index: 1;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.carousel-background .carousel-container {
    border-radius: 0;
    box-shadow: none;
    height: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.carousel-background .carousel-slide img {
    height: 100%;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .carousel-caption {
    transform: translateY(0);
}

.carousel-caption h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    margin: 0;
    font-size: 0.95rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 1);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
}

/* ================================
   DOCUMENTAZIONI SECTION
   ================================ */

.documentazioni-section {
    padding: 3rem 0;
}

.docs-category {
    margin-bottom: 4rem;
}

.docs-category h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.doc-card {
    background: white;
    border: 2px solid var(--border-color);
    padding: 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.doc-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.doc-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.doc-card p {
    color: var(--text-light);
    flex-grow: 1;
    margin-bottom: 1rem;
}

.download-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    margin-top: 3rem;
}

.download-info h2 {
    margin-bottom: 1rem;
}

.download-info ol {
    margin-left: 1.5rem;
}

.download-info li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ================================
   CONTACT SECTION
   ================================ */

.contact-section {
    padding: 3rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-light);
    margin: 0;
}

.info-item a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ================================
   CONTACT FORM
   ================================ */

.contact-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
}

.form-group.checkbox label {
    margin: 0;
}

/* ================================
   COMPLAINTS SECTION
   ================================ */

.complaints-section {
    padding: 3rem 0;
    background: var(--light-bg);
    margin-top: 3rem;
    border-radius: 0.75rem;
}

.complaints-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.complaints-info {
    max-width: 800px;
}

.complaints-info ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.complaints-info li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.complaints-info a {
    color: var(--primary-color);
    font-weight: 600;
}

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

footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

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

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.25rem;
        margin-left: 0;
        border-top: 1px solid #374151;
        z-index: 1001;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .tagline {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slide img {
        height: 250px;
    }

    .carousel-button {
        padding: 0.75rem;
        font-size: 1.25rem;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h3 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.85rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   UTILITIES
   ================================ */

.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
