html,
body {
    overflow-x: hidden;
}

@media (max-width: 575.98px) {
    body {
        overflow-x: hidden;
    }
}
.zoom {
    cursor: pointer;

 transition: transform .2s;}
 .zoom:hover {
     transform: scale(1.1);
     /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
 }
 /* Animation */
@font-face {
    font-family: 'Chakra Petch';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/font/cIfkMapbsEk7TDLdtEz1BwkWmppiYLo.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.chakra-petch-regular {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.chakra-petch-semibold {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.chakra-petch-bold {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Meie Script';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/font/_LOImzDK7erRjhunIspaMgxg7oQ.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a,
div,
h1,
h2,
h3,
h4,
h5,
h6,
li,
ol,
p,
span,
ul {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #333;
}

.titolo {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #999900;
}

/* Sovrapposizione scritta */
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    opacity: 0;
    animation: fadeIn 3s ease-in-out forwards;
}

.scrittainiziale {
    color: white;
}

/* Inizio Navbar */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.button.navbar-toggler {
    border: none solid white !important;

}

.navbar-toogler :focus {
    box-shadow: none !important;
}

#navbar {

    background-color: transparent;
    transition: background-color 0.3s ease;
    color: rgb(0, 0, 0);
}

#navbar.scrolled {
    background-color: #333 !important;
}

.content {
    margin-top: 100px;
    padding: 20px;
    height: 2000px;
    /* Per simulare lo scroll */
    background: linear-gradient(rgb(45, 37, 37), lightgray) !important;
}

.navbar-brand {
    width: 50px !important;
}

/* fine navbar */

/* Logo */
.overlay-text img {
    width: 200px;
    margin-bottom: 20px;
}

@media (max-width: 575.98px) {}

.overlay-text img {
    width: 500px;
    margin-bottom: 20px;
}

/* Effetto fade-in */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Sfondo scuro per contrasto */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-item>img {
    object-fit: cover;
    height: 100vh;
}

.carousel-item .overlay-text {
    z-index: 2;
}

.logoini {
    width: 200px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .logoini {
        width: 100px;
    }
}

/* fine logo */

/* carosello */
@media (max-width: 575.98px) {
    .carousel-item>img {
        height: 50vh;
    }
}

.logocarosello {
    width: 280px !important;
    height: auto !important;
}

@media (max-width: 575.98px) {
    .logocarosello {
        width: 0 !important;
        height: auto !important;
    }
}

/* fine carosello */

/* card */
.card {
    border: none !important;
    border-radius: 25px !important;
}

.rotondo {
    border-radius: 25px !important;
}

.fine {
    background-color: #333;
    color: white;
}

.elettrico {
    background-image: linear-gradient(to top, rgba(51, 51, 51, 0.4), rgba(222, 229, 229, 0.8));
}

#contatti {
    background-image: linear-gradient(to top, rgba(51, 51, 51, 1), rgba(222, 229, 229, 0.8));
}
.sopra-sotto{
    margin-top: 5rem;
    margin-bottom: 2rem;
}


/* icone */
.iconafine {
    width: 30px;
    height: auto;
}

.iconafine1 {
    width: 50px;
    height: auto;
}

/* Mappa */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* Rapporto 16:9 */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* fine Mappa */
.piede {
    background: linear-gradient(to bottom, #333, #000);
    color: white;
    padding-top: 2rem;
    color: white;
}

/* ELETTRICITA' */
#bg-video {
    min-width: 100%;
    min-height: 100vh;
    max-width: 100%;
    max-height: 100vh;
    object-fit: cover;
    z-index: -1;
}

#bg-video::-webkit-media-controls {
    display: none !important;
}

.video-overlay {
    position: absolute;
    background-color: rgba(31, 39, 43, 0.30);
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
}

.main-banner .caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* display: flex; */
}

.main-banner .caption h6 {
    margin-top: 0;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 600;
    /* color: #fff; */
    letter-spacing: 1px;
}

.main-banner .caption h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 36px;
    text-transform: uppercase;
    font-weight: 800;
    /* color: #fff; */
    letter-spacing: 1px;
}

.main-banner .caption h2 em {
    font-style: normal;
    color: #999900;
    font-weight: 900;
}

@media (max-width: 575.98px) {
    .main-banner .caption h2 {
        margin-top: 20px;
        margin-bottom: 20px;
        font-size: 18px;
        text-transform: uppercase;
        font-weight: 800;
        /* color: #fff; */
        letter-spacing: 1px;
    }
}

.main-banner .caption p {
    color: #fff;
    /* font-size: 14px;
    max-width: 570px; */
    margin-left: auto;
    margin-right: auto;
}

.bg-elettrico {
    /* background-image: url(../img/elettrico/bgelettrico.webp);
    /* opacity: 0.2; */
    /* background-repeat: no-repeat;
    background-size: cover;
    margin-top: -10px; */
    background-color: #bfbfbf;
}

.carele {
    color: white;
}

.riferimentoarmoniche {
    text-align: center;
}

.btn-grad {
    background-image: linear-gradient(to right, #F09819 0%, #EDDE5D 51%, #F09819 100%);
}

.btn-grad {
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    display: block;
}

.btn-grad:hover {
    background-position: right center;
    /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}