@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --color-primary: #ff6600;
    --color-secondary: #ff8533;
    --color-tertiary: #ffa64d;
    --orange-lightest: #fff9f4;
    --orange-lighter: #ffebe0;
    --orange-light: #ffd9bf;
    --orange-medium-light: #ffc299;

    --text-color-dark: #333;
    --h2-border-bottom: var(--color-primary);
    --shadow-light: rgba(255, 102, 0, 0.08);
    --shadow-medium: rgba(255, 102, 0, 0.15);
    --shadow-strong: rgba(255, 102, 0, 0.25);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background: linear-gradient(135deg, #ff6600 0%, #ff6600 30%, #ff6600 70%, #ff6600 100%);
    background-image: url("data:image/svg+xml;utf8,<svg ...>hex/circuit pattern here</svg>");
    background-size: 30px 30px;
    background-repeat: repeat;
    background-attachment: fixed;
    background-blend-mode: multiply;
    color: var(--text-color-dark);
}

header {
    background: #00C389;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 12px 12px;
    width: 100%;
    margin: 5px auto;
    padding: 16px 24px;
    transition: all 0.3s ease;
}

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

.logo-title {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
}

.logo-title-img h2 {
    color: white;
    border-bottom: 0;
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-style: normal;
}


.logo-title-img {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-title img {
    width: 70px;
    height: auto;
}

header h1 {
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

nav.nav-links {
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

nav a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

main {
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 3rem;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: all 0.3s ease;
    width: 100%;
}


section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.section-us {
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px var(--shadow-light);
    margin-top: 50px;
    width: 95%;
    background-image: url(./img/872.jpg);
    background-size: cover;
    background-position: center;
}

.us-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    align-items: center;
}

.us-text {
    flex: 1 1 480px;
    max-width: 800px;
    color: #333;
    padding: 20px;
    background-color: lightyellow;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.us-text h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--color-primary);
    border-bottom: 5px solid var(--color-primary);
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.us-text p {
    font-family: 'Inter', sans-serif;
    font-size: 2rem !important;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    letter-spacing: 0.015em;
    margin-bottom: 10px;
}

.us-text p:not(.us-text p strong) {
    font-size: 2rem !important;
}


.carousel-wrapper {
    flex: 1 1 450px;
    max-width: 600px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.section-us .active,
.section-us .dot:hover {
    background-color: var(--color-primary);
    border-color: var(--color-secondary);
}

.section-us h2 {
    color: var(--color-secondary);
    display: inline-block;
    border-bottom: 4px solid var(--h2-border-bottom);
    font-size: 3.5rem !important;
}

h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    border-bottom: 4px solid var(--h2-border-bottom);
    display: inline-block;
    padding-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.product-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.certified-banner {
    background-color: #e0f7fa;
    border-left: 6px solid #00796b;
    padding: 16px 24px;
    margin: 30px 0 10px 0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #004d40;
}

.certified-banner.chi-siamo-banner {
    flex: 1 1 100%;
    margin-top: 0;
    order: 3;
}

.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 1rem;
}

.product-card {
    flex: 0 0 auto;
    width: 280px;
    border: 1px solid var(--orange-lighter);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 12px var(--shadow-light);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.product-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 4px 8px var(--shadow-medium);
    transition: background-color 0.3s ease;
}

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

.btn-prev {
    left: 0.5rem;
}

.btn-next {
    right: 0.5rem;
}

.section-us,
.section-products,
.section-riparazioni {
    padding: 10px 20px;
}

.section-riparazioni {
    padding: 50px 30px;
    background: linear-gradient(90deg, #ff6600, #ffa64d);
    box-shadow: 0 12px 35px var(--shadow-medium);
    background-image: url(./img/background-1724649_1280.jpg);
}

.section-riparazioni h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--color-primary);
    border-bottom: 4px solid var(--color-primary);
}

.riparazioni-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.riparazione-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(to bottom right, var(--orange-lighter), var(--orange-light));
    border-radius: 12px;
    box-shadow: 0 6px 16px var(--shadow-light);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.riparazione-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.riparazione-card.reverse {
    flex-direction: row-reverse;
}

.riparazione-img {
    flex: 0 0 35%;
    max-width: 350px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.riparazione-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.riparazione-img img:hover {
    transform: scale(1.03);
}

.riparazione-info {
    flex: 1;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color-dark);
}

.riparazione-info h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.riparazione-info p {
    font-size: 1.05rem;
    margin-bottom: 0;
}

#contatti {
    background: linear-gradient(135deg, var(--orange-lightest) 0%, var(--orange-lighter) 100%);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 28px var(--shadow-medium);
    max-width: 1100px;
    margin: 60px auto;
    font-family: 'Montserrat', sans-serif;
}

#contatti h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.contatti-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    justify-content: space-between;
}

.contact-card {
    flex: 1 1 350px;
    background: var(--orange-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-medium);
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    color: var(--text-color-dark);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    min-width: 24px;
}

.map-card {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#whatsappBtn {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

#whatsappBtn:hover {
    background-color: #1ebe57;
    box-shadow: 0 6px 12px rgba(30, 190, 87, 0.6);
}


footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #00C389;
    color: white;
    font-size: 0.9rem;
}

@media only screen and (max-width: 600px) {

    .header-content {
        display: flex;
    }

    .logo-title {
        width: 100%;
        justify-content: space-between;
    }

    .hamburger {
        display: block;
    }

    nav.nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
        margin-top: 15px;
        align-items: center;
    }

    nav.nav-links.active {
        display: flex;
    }

    nav a {
        padding: 10px 0;
        width: 90%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    nav a:last-child {
        border-bottom: none;
    }

    header {
        padding: 10px 20px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    main {
        padding: 0 10px;
    }

    section {
        padding: 20px 15px;
        margin-bottom: 2rem;
    }

    .us-content {
        flex-direction: column;
        gap: 30px;
    }

    .us-text,
    .carousel-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .us-text h2 {
        font-size: 2rem;
        text-align: center;
        border-bottom: 3px solid var(--color-primary);
        padding-bottom: 8px;
        margin-bottom: 15px;
    }

    .us-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .product-carousel {
        padding-bottom: 0.5rem;
    }

    .product-card {
        width: 250px;
        padding: 10px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .section-riparazioni {
        padding: 30px 15px;

    }

    .section-riparazioni h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .riparazioni-wrapper {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
    }

    .riparazione-card,
    .riparazione-card.reverse {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .riparazione-img {
        flex: 0 0 100%;
        max-width: 100%;
        height: 200px;
    }

    .riparazione-info h3 {
        font-size: 1.5rem;
        text-align: center;
        margin-top: 10px;
    }

    .riparazione-info p {
        font-size: 0.95rem;
        text-align: center;
    }

    .certified-banner.chi-siamo-banner {
        margin-top: 30px;
    }

    #contatti {
        padding: 30px 15px;
        margin: 40px auto;
    }

    #contatti h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .contatti-wrapper {
        flex-direction: column;
        gap: 25px;
    }

    .contact-card,
    .map-card {
        flex: 1 1 100%;
        height: auto;
    }

    .map-card {
        min-height: 250px;
    }

    .contact-item {
        font-size: 1rem;
    }

    .contact-item i {
        font-size: 1.3rem;
    }

    #whatsappBtn {
        font-size: 14px;
        padding: 10px 20px;
        width: 100%;
        justify-content: center;
    }
}

@media only screen and (max-width: 1024px) {
    .section-us {
        padding: 30px 20px;
    }

    .us-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .us-text {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 15px;
    }

    .us-text h2 {
        font-size: 2.5rem;
        text-align: center;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .us-text p {
        font-size: 1.05rem !important;
        line-height: 1.7;
        text-align: justify;
    }

    .carousel-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media only screen and (min-width: 601px) and (max-width: 768px) {
    header {
        padding: 15px 30px;
    }

    .logo-title {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .logo-title h1 {
        font-size: 1.8rem;
        margin: 0;
    }

    .hamburger {
        display: block;
        margin: 0;
        padding: 8px;
        font-size: 1.8rem;
    }

    nav.nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        align-items: flex-end;
    }

    nav.nav-links.active {
        display: flex;
    }

    nav a {
        padding: 8px 15px;
        text-align: right;
    }

    main {
        padding: 0 20px;
    }

    section {
        padding: 25px 20px;
    }

    .us-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .us-text,
    .carousel-wrapper {
        max-width: 90%;
    }

    .us-text h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .us-text p {
        font-size: 1.1rem;
    }

    .product-card {
        width: 220px;
    }

    .section-riparazioni {
        padding: 40px 20px;

    }

    .section-riparazioni h2 {
        font-size: 2.2rem;
    }

    .riparazioni-wrapper {
        max-width: 90%;
    }

    .riparazione-card,
    .riparazione-card.reverse {
        flex-direction: column;
        gap: 25px;
        padding: 25px;
    }

    .riparazione-img {
        max-width: 90%;
        height: 220px;
    }

    .riparazione-info h3 {
        font-size: 1.6rem;
        text-align: center;
    }

    .riparazione-info p {
        font-size: 1rem;
        text-align: center;
    }

    .certified-banner.chi-siamo-banner {
        margin-top: 30px;
    }

    #contatti {
        padding: 35px 20px;
        margin: 50px auto;
    }

    #contatti h2 {
        font-size: 2.2rem;
    }

    .contatti-wrapper {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .contact-card,
    .map-card {
        flex: 1 1 90%;
    }

    .map-card {
        min-height: 300px;
    }

    .contact-item {
        font-size: 1rem;
    }

    .contact-item i {
        font-size: 1.3rem;
    }
}



@media only screen and (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 18px 40px;
        width: 95%;
    }

    .logo-title h1 {
        font-size: 2rem;
    }

    .hamburger {
        display: none;
    }

    nav.nav-links {
        display: flex;
        flex-direction: row;
        width: auto;
        margin-top: 0;
    }

    main {
        padding: 0 30px;
        max-width: 960px;
    }

    section {
        padding: 30px 25px;
    }

    .us-content {
        flex-direction: column;
        /* Imposta gli elementi in colonna */
        gap: 30px;
        justify-content: center;
        align-items: center;
        /* Centra gli elementi orizzontalmente */
    }

    .us-text {
        flex: 1 1 100%;
        /* Occupa il 100% della larghezza disponibile */
        max-width: 100%;
    }

    .carousel-wrapper {
        flex: 1 1 100%;
        /* Occupa il 100% della larghezza disponibile */
        max-width: 100%;
    }

    .us-text h2 {
        font-size: 2.5rem;
        text-align: center;
        /* Centra il titolo */
    }

    .us-text p {
        font-size: 1.1rem;
        text-align: justify;
    }

    .product-card {
        width: 250px;
    }

    .section-riparazioni {
        padding: 45px 25px;
    }

    .section-riparazioni h2 {
        font-size: 2.3rem;
    }

    .riparazione-card,
    .riparazione-card.reverse {
        flex-direction: row;
        gap: 30px;
        padding: 25px;
    }

    .riparazione-card.reverse {
        flex-direction: row-reverse;
    }

    .riparazione-img {
        flex: 0 0 30%;
        max-width: 300px;
        height: 200px;
    }

    .riparazione-info h3 {
        font-size: 1.7rem;
        text-align: left;
    }

    .riparazione-info p {
        font-size: 1rem;
        text-align: left;
    }

    .certified-banner.chi-siamo-banner {
        margin-top: 30px;
        order: unset;
        /* Remove the order property inherited from smaller screens */
    }

    #contatti {
        padding: 40px 25px;
        margin: 50px auto;
    }

    #contatti h2 {
        font-size: 2.3rem;
    }

    .contatti-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .contact-card {
        flex: 1 1 45%;
        padding: 25px;
    }

    .map-card {
        flex: 1 1 50%;
        height: 300px;
    }

    .contact-item {
        font-size: 1.05rem;
    }

    .contact-item i {
        font-size: 1.4rem;
    }
}