﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background: #2f2f2f;
    color: white;
    padding: 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

    header h1 {
        margin-bottom: 15px;
    }

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.logo-link {
    display: inline-block;
}

.logo {
    cursor: pointer;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

    .menu li {
        display: inline-block;
    }

    .menu a {
        color: white;
        text-decoration: none;
        font-weight: bold;
        padding: 10px;
        transition: background 0.3s ease;
    }

        .menu a:hover {
            background: #5a5a5a;
            border-radius: 5px;
        }

.submenu a:hover {
    background: #6a6a6a;
}

.menu li {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #3a3a3a;
    list-style: none;
    min-width: 220px;
    padding: 0;
    z-index: 1001;
}

    .submenu li {
        display: block;
    }

    .submenu a {
        display: block;
        padding: 12px;
        color: white;
    }

.dropdown:hover .submenu {
    display: block;
}

main {
    padding: 0;
    min-height: 400px;
    margin-top: 140px;
}

footer {
    background: #f2f2f2;
    text-align: center;
    padding: 15px;
}

.hero-section {
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    width: 80%;
}

    .hero-text h2 {
        font-size: 64px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 28px;
        font-weight: 400;
        line-height: 1.4;
    }

.info-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 60px;
    gap: 40px;
    flex-wrap: wrap;
}

.info-image-container {
    flex: 1;
    min-width: 300px;
}

.info-image {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.info-text {
    flex: 1;
    min-width: 300px;
}

    .info-text h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .info-text p {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

.info-box {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #2f2f2f;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .info-box h3 {
        margin-bottom: 10px;
        font-size: 22px;
    }

.chi-siamo-section {
    display: flex;
    gap: 40px;
    padding: 50px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.chi-siamo-text {
    flex: 1;
    min-width: 320px;
}

.chi-siamo-slider {
    flex: 1;
    min-width: 320px;
}

.chi-siamo-slider {
    width: 200px;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

@media screen and (max-width: 768px) {
    .info-section,
    .chi-siamo-section {
        flex-direction: column;
        padding: 20px;
    }
}

}

/* TABLET */
@media screen and (max-width: 768px) {
    header {
        padding: 15px;
    }

    .menu {
        flex-direction: column;
        align-items: center;
    }

    main {
        padding: 15px;
    }
}

/* SMARTPHONE */
@media screen and (max-width: 480px) {
    header h1 {
        font-size: 22px;
    }

    .menu a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    main {
        padding: 10px;
    }

    footer {
        font-size: 14px;
    }
}

.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-menu-toggle {
        display: block;
        margin-top: 10px;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #2f2f2f;
        margin-top: 10px;
    }

        .menu.show {
            display: flex;
        }

        .menu li {
            width: 100%;
        }

    .submenu {
        position: static;
        width: 100%;
    }
}

.servizi-layout {
    display: flex;
    width: 100%;
    gap: 30px;
    padding: 40px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.servizi-info {
    width: 70%;
    order: 1;
}

.servizi-slider {
    width: 30%;
    order: 2;
    margin-left: auto;
}

    .servizi-slider img {
        height: 500px;
        object-fit: cover;
        border-radius: 10px;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

@media screen and (max-width: 768px) {
    .servizi-layout {
        flex-wrap: wrap;
    }

    .servizi-info,
    .servizi-slider {
        width: 100%;
    }
}

.aspNetCalendar {
    margin-top: 20px;
}

.row-form {
    display: flex;
    gap: 20px;
    width: 100%;
}

.half-field {
    width: 50%;
}

.third-field {
    width: 40%
}
.2third-field {
    width: 60%
}
.quarter-field {
    width: 25%;
}
.3quarter-field {
    width: 75%;
}
@media screen and (max-width: 768px) {
    .row-form {
        flex-direction: column;
    }

    .half-field {
        width: 100%;
    }
}

.phone-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.country-select {
    width: 180px;
}

.prephone-input {
    flex: 1;
    width: 30px:
}
.phone-input {
    flex: 1;
}

@media screen and (max-width: 768px) {
    .phone-container {
        flex-direction: column;
    }

    .country-select {
        width: 100%;
    }
}

.table-panel {
    background: #f5f5f5;
    border-radius: 10px;
    margin-top: 10px;
    margin-left: 0px;
}

    .table-panel h3 {
        margin-top: 0;
    }

    .table-panel .form-control {
        margin-bottom: 15px;
    }


.input-valid {
    border: 2px solid #28a745 !important;
}

.input-invalid {
    border: 2px solid #dc3545 !important;
}

.validation-msg {
    font-size: 0.9rem;
    margin-top: 2px;
}

.validation-valid {
    color: #28a745;
}

.validation-invalid {
    color: #dc3545;
}

.icon-valid::after {
    content: " ✔";
    color: #28a745;
}

.icon-invalid::after {
    content: " ✖";
    color: #dc3545;
}

.table th {
    width: 200px;
    background: #f5f5f5;
}

pointer-events:none;