:root {
    --primary-color: #0056b3;
    --secondary-color: #ff6600;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white: #ffffff;
    --text-color: #444;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}
@font-face{
    src: url('../fonts/Inter.ttf');
    font-family: "Inter";
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face{
    src: url('../fonts/Outfit.ttf');
    font-family: "Outfit";
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}
.link{
    cursor: pointer;
    text-decoration: underline;
}
.clear_20{
    clear: both;
    height: 20px;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

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

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

.btn-outline {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-outline:hover {
    background-color: #004187;
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Header */
#header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}
.main-nav{
    display: flex;
    gap: 40px;
    align-items: center;
    font-size: 18px;
}
header .ph_menu{
    position: relative;
    cursor: pointer;
}
header .ph_menu::after{
    content: 'MENU';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.menu_opened header .ph_menu::after{
    content: 'CHIUDI';
}
header .wrap_menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    color: white;
    z-index: 20;
    box-shadow: 0 20px 20px rgba(0,0,0,.1);
    /* clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); */
    opacity: 0;
    visibility: hidden;
    transition: 400ms ease;
}
.menu_opened header .wrap_menu {
    /* clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0); */
    opacity: 1;
    visibility: visible;
}
header .wrap_menu {
    height: calc(100dvh - 88px);
}
header .wrap_menu ul {
    list-style-type: none;
    font-style: normal;
    font-weight: 900;
    font-size: 40px;
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    height: 100%;
}
header .wrap_menu ul li {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    color: var(--green);
    cursor: pointer;
}
header .wrap_menu li [data-type='hover']{
    display: none;
}






.main-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}
.main-nav .btn_menu{
    font-weight: 700;
    color: var(--secondary-color);
}

.main-nav .btn {
    color: var(--white);
}

.mobile-toggle {
    display: none;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('../images/climatizzazione.jpg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.1;
}

.hero-content span {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--white);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: relative;
    display: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Sections */

.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: #B3B3B3;
}

/* Identity */
.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.values-list {
    margin-top: 20px;
}

.values-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.values-list i {
    color: var(--secondary-color);
}

.img-placeholder {
    background-color: #ddd;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Services Carousel */
.services-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 50px;
    max-width: 1230px;
    margin: 0 auto;
}

.services-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}



.services-carousel::-webkit-scrollbar {
    display: none;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    /*min-width: 260px;
    width: 260px;*/
    width: 100%;
    min-height: 260px;
    flex: 0 0 auto;
}

.service-card:last-child {
    margin-right: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.carousel-btn {
    background-color: var(--white);
    border: 1px solid #ddd;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.prev-btn {
    left: -50px;
}

.next-btn {
    right: -50px;
}

.additional-services {
    margin-top: 40px;
    text-align: center;
}

.additional-services ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.additional-services li {
    background: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Brands */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.brand-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #777;
    transition: var(--transition);
}

.brand-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Zones */
.zones-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Contracts */
.contracts-wrapper {
    display: flex;
    justify-content: center;
}

.contract-box {
    background: var(--white);
    border: 2px solid var(--primary-color);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 800px;
}

.contract-box ul {
    text-align: left;
    margin: 20px 0;
}

.contract-box li {
    margin-bottom: 10px;
}

.contract-box i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info a {
    color: var(--secondary-color);
}

.hours,
.emergency {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    color: var(--dark-color);
}

.contact-form-wrapper h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

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

.form-group .required {
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.checkbox-group.vertical,
.radio-group.vertical {
    flex-direction: column;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: var(--transition);
    background-color: #f8f8f8;
}

.checkbox-label:hover,
.radio-label:hover {
    background-color: #e8f0fe;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span,
.radio-label span {
    font-size: 14px;
    color: var(--text-color);
}

/* Altro Input Field */
.altro-input {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.altro-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info-item {
    text-align: center;
}

.contact-info-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-info-item h3 {
    margin-bottom: 10px;
}

.contact-info-item a {
    color: var(--secondary-color);
}

/* Hours and Emergency */
.hours-emergency {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.hours h3,
.emergency h3 {
    margin-top: 20px;
}

.hours h3:first-child,
.emergency h3:first-child {
    margin-top: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 40px;
    background: rgba(255, 102, 0, 0.1);
    border-radius: 10px;
}

.cta-section h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Form Page */
.form-page {
    min-height: 70vh;
}

.form-page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-page .section-header h1 {
    color: var(--primary-color);
}

form .privacy{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
}
form input[type='checkbox'] {
    width: 25px;
    height: 25px;
}
.faq{
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}
.faq .q{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    cursor: pointer;
}
.faq .q h3{
    margin-bottom: 0;
    line-height: normal;
    font-size: 23px;
    color: var(--primary-color);
    justify-content: flex-start;
}
.faq .q .flex{
    display: flex;
    justify-content: center;
    align-items: center;
}
.faq .q .flex.start{
    justify-content: flex-start;
}
.faq .q svg{
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    transition: 400ms ease;
}
.faq .q svg.rotated{
    transform: rotate(90deg);
}
.faq .a{
    display: none;
}
.faq .a p{
    margin-top: 20px;
}
/* Responsive */
@media (max-width: 768px) {

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav .btn {
        margin: 10px 0 0;
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }

    .hero-content {
        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .identity-grid,
    .zones-content,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .mobile-toggle {
        display: block;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hours-emergency {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }


}