* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #1a4971;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* header fisso */
header {
    background: linear-gradient(135deg, #1A5A7A 0%, #4D7489 50%, #1B92C0 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(26, 90, 122, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* menu hamburger mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* menu mobile fullscreen */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1A5A7A 0%, #1B92C0 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
}

.mobile-menu-links li {
    margin: 2rem 0;
}

.mobile-menu-links a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-menu-links a:hover {
    color: #6BB8D6;
    transform: scale(1.1);
}

.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-weight: 400;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: #6BB8D6;
    transform: translateY(-1px);
}

/* sezione hero principale */
.hero {
    background: linear-gradient(135deg, rgba(26, 90, 122, 0.9), rgba(27, 146, 192, 0.8)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><rect fill="%23f0f8ff" width="1000" height="600"/><rect fill="%234682b4" x="0" y="0" width="1000" height="100"/><rect fill="%23708090" x="0" y="100" width="1000" height="50"/><circle fill="%23228b22" cx="200" cy="300" r="50"/><circle fill="%23228b22" cx="800" cy="250" r="40"/><rect fill="%23daa520" x="400" y="200" width="200" height="100"/><rect fill="%23cd853f" x="420" y="220" width="160" height="60"/></svg>');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s both;
    opacity: 0.95;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #1B92C0 0%, #6BB8D6 50%, #1A5A7A 100%);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(27, 146, 192, 0.3);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(27, 146, 192, 0.4);
    background: linear-gradient(135deg, #1A5A7A 0%, #1B92C0 50%, #4D7489 100%);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #4D7489 0%, #1A5A7A 50%, #8BADB8 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, #1A5A7A 0%, #4D7489 50%, #1B92C0 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

/* caratteristiche principali */
.features {
    padding: 80px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1A5A7A 0%, #1B92C0 50%, #4D7489 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(26, 90, 122, 0.2);
}

/* sezione posizione */
.location {
    padding: 80px 0;
    background: white;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.google-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.google-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* gallery immagini aeree */
.aerial-gallery {
    margin-top: 4rem;
}

.aerial-gallery h3 {
    text-align: center;
    color: #1A5A7A;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.aerial-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.aerial-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.aerial-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.aerial-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aerial-image img.loaded {
    opacity: 1;
}

.aerial-image-caption {
    padding: 1rem;
    background: #f8fafc;
    text-align: center;
    font-weight: 500;
    color: #4D7489;
}

/* vantaggi zona zes */
.zes-benefits {
    padding: 80px 0;
    background: linear-gradient(135deg, #1A5A7A 0%, #4D7489 50%, #1B92C0 100%);
    color: white;
    position: relative;
}

.zes-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* specifiche tecniche */
.specs {
    padding: 80px 0;
    background: #f8fafc;
}

.specs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #8BADB8;
}

.spec-item:last-child {
    border-bottom: none;
}

/* planimetria tecnica */
.technical-plan {
    margin-top: 4rem;
    text-align: center;
}

.technical-plan h3 {
    color: #1A5A7A;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.plan-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.plan-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.plan-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-image img.loaded {
    opacity: 1;
}

.plan-description {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.plan-description p {
    color: #4D7489;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.plan-highlight {
    background: linear-gradient(135deg, #1B92C0 0%, #6BB8D6 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
}

/* form contatti */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #1B92C0 0%, #1A5A7A 50%, #4D7489 100%);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #1B92C0 0%, #6BB8D6 50%, #1A5A7A 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(27, 146, 192, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 146, 192, 0.4);
    background: linear-gradient(135deg, #1A5A7A 0%, #1B92C0 50%, #4D7489 100%);
}

/* footer */
footer {
    background: #1A5A7A;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #6BB8D6;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* titoli sezioni */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #1A5A7A;
    font-weight: 600;
    letter-spacing: 1px;
}

.section-title p {
    font-size: 1.2rem;
    color: #4D7489;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.zes-benefits .section-title h2,
.contact .section-title h2 {
    color: white;
}

.zes-benefits .section-title p,
.contact .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

/* modal conferma stile sweetalert */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1B92C0 0%, #6BB8D6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    animation: modalPulse 0.6s ease;
}

@keyframes modalPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.modal-content h3 {
    color: #1A5A7A;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: #4D7489;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-btn {
    background: linear-gradient(135deg, #1B92C0 0%, #1A5A7A 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 146, 192, 0.4);
}

/* cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 90, 122, 0.95);
    color: white;
    padding: 1rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cookie-btn.accept {
    background: #1B92C0;
    color: white;
}

.cookie-btn.decline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* responsive mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .location-content,
    .specs-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .google-map iframe {
        height: 300px;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .aerial-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .plan-image {
        margin: 0 1rem;
    }

    .plan-description {
        margin: 2rem 1rem 0 1rem;
        padding: 1.5rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }
}
/* BOX PDF SPECIALE */
.pdf-download-special {
    margin-top: 4rem;
    background: linear-gradient(135deg, #1A5A7A 0%, #1B92C0 50%, #4D7489 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 90, 122, 0.3);
    position: relative;
}

.pdf-download-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.pdf-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    padding: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.pdf-icon-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pdf-icon-large {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pdf-preview {
    display: flex;
    gap: 5px;
    margin-top: 1rem;
}

.pdf-page {
    width: 20px;
    height: 26px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.pdf-page::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 2px;
    background: #1A5A7A;
    border-radius: 1px;
}

.pdf-page::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 3px;
    right: 3px;
    height: 1px;
    background: #8BADB8;
}

.pdf-text-section {
    color: white;
}

.pdf-text-section h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.pdf-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.pdf-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pdf-features li {
    padding: 0.5rem 0;
    font-size: 1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1A5A7A;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    max-width: fit-content;
}

.pdf-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: #1B92C0;
}

.btn-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #1A5A7A 0%, #1B92C0 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.btn-text strong {
    font-size: 1.1rem;
}

.btn-text small {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 400;
}

.pdf-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-size {
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Responsive per il box PDF */
@media (max-width: 768px) {
    .pdf-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }

    .pdf-text-section h3 {
        font-size: 1.5rem;
    }

    .pdf-features {
        text-align: left;
    }

    .pdf-download-btn {
        justify-content: center;
        margin: 0 auto;
    }
}

/* Aggiustamento grid features per 6 card normali */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

