@font-face {
    font-family: anaheimregular;
    src: url('../css/anaheim-regular-webfont.eot');
    src: url('../css/anaheim-regular-webfontd41d.eot?#iefix') format('embedded-opentype'), url('../css/anaheim-regular-webfont.woff') format('woff'), url('../css/anaheim-regular-webfont.ttf') format('truetype'), url('../css/anaheim-regular-webfont.svg#anaheimregular') format('svg');
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

html {
    scroll-behavior: smooth
}

body, html {
    margin: 0;
    padding: 0;
    font-family: anaheimregular, sans-serif;
    width: 100%;
    height: 100% !important;
    text-decoration: none;
    background-color: #fff;
}

* {
    margin: 0;
    padding: 0;
}

img {
    object-fit: contain
}

a:hover {
    color: #000;
    text-decoration: none
}

header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 1% 2%;
    width: 96%;
    background-color: #8fa885;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

}

.logo {
    float: left;
    width: 50%;
    max-width: 255px;
    overflow: hidden;
    text-align: center
}

.logo a {
    text-decoration: none;
    color: #8fa885
}

.logo img {
    width: 100%
}

.menu {
    float: right;
    width: auto;
    color: #00ff01;
    text-decoration: none;
    text-align: right;
    font-size: 22px;
    margin-left: auto;
    height: 40px;
    line-height: 40px;
    display: block
}

.overlay {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgba(242, 242, 242, .98);
    overflow-y: hidden;
    transition: .5s;
    display: flex;
    align-items: center
}

.overlay-content {
    position: relative;
    width: 100%;
    text-align: center
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 50px;
    color: #8fa885;
    display: block;
    transition: .3s
}

.overlay a:focus, .overlay a:hover {
    color: #000
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px
}

p {
    font-size: 20px;
    line-height: 28px;
    color: #000
}

p a {
    color: #8fa885;
    text-decoration: none
}

a.selez {
    color: #000;
    text-decoration: none
}

footer {
    float: left;
    padding: 2%;
    width: 96%;
    background-color: #e6e6e6;
    text-align: center
}

.piedi {
    float: left;
    padding: 1%;
    width: calc(94% / 3)
}

p.piedi a {
    color: #8fa885
}

p.piedi a.selez {
    color: #000;
    text-decoration: none
}

p.piedi a:hover {
    color: #000;
    text-decoration: none
}

p.clerboth a {
    color: #8fa885
}

p.clerboth a.selez {
    color: #000;
    text-decoration: none
}

p.clerboth a:hover {
    color: #000;
    text-decoration: none
}

.clerboth {
    clear: both;
    padding-top: 30px
}

@media screen and (max-width: 950px) {
    footer {
        width: 92%;
        padding: 4% 4% 10%;
    }

    .piedi {
        padding: 1%;
        width: 98%
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 2% 3%;
        width: 94%
    }

    .overlay .closebtn {
        top: -8px;
        right: 15px;
        font-size: 50px
    }
}

@media screen and (max-height: 500px) {
    .overlay a {
        font-size: 30px
    }

    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 15px;
        text-align: center;
        width: 45px
    }
}


.freeprivacypolicy-com---reset p {
    margin-bottom: .5rem !important
}

.slide {
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
    position: relative;
    width: 100%;
    height: 100% !important;
    text-align: center !important;
    overflow: hidden
}

h1 {
    font-size: 6vw;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    width: 30em;
    animation: type 3s steps(60, end)
}

@keyframes type {
    from {
        width: 0
    }
}

h2 {
    font-size: 65px
}

h3 {
    font-size: 45px;
    color: #707070
}

h4 {
    font-size: 65px
}

h5, h5 a {
    font-size: 30px;
    color: #707070;
    text-decoration: none
}

h5 a:hover {
    color: #000;
    text-decoration: none
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

.down {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%);
    -webkit-animation-name: mymove;
    -webkit-animation-iteration-count: infinite;
    animation: mymove 1s;
    animation-iteration-count: infinite
}

@-webkit-keyframes mymove {
    from {
        bottom: 10px;
        filter: brightness(1)
    }
    to {
        bottom: 0;
        filter: brightness(0)
    }
}

@keyframes mymove {
    from {
        bottom: 10px;
        filter: brightness(1)
    }
    to {
        bottom: 0;
        filter: brightness(0)
    }
}

.down:hover {
    -webkit-animation-play-state: paused;
    -moz-animation-play-state: paused;
    -o-animation-play-state: paused;
    animation-play-state: paused;
    cursor: pointer
}

main {
    width: 90%;
    padding: 75px 5%;
    max-width: 850px;
    margin: auto;
    height: auto;
    overflow: hidden;
    text-align: center;
    position: relative
}

.mainContact {
    width: 90%;
    padding: 125px 5%;
    max-width: 1024px;
    margin: auto;
    overflow: hidden;
    height: auto;
    text-align: center
}

main section {
    float: left;
    text-align: left
}


main section div {
    float: left;
    text-align: left;
    width: 100%;
    margin-bottom: 20px
}

main article img {
    margin-right: 40px;
    float: left
}

.mainArticle {
    float: left;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left
}

.mainArticleImg {
    border: solid 1px #ddd;
    padding: 3px;
    margin-right: 40px;
    float: left;
    border-radius: 113px
}


.mainArticleDiv {
    float: left;
    width: calc(100% - 273px)
}

main article div {
    float: left;
    width: calc(100% - 120px)
}

aside {
    width: 90%;
    padding: 30px 5%;
    height: auto;
    overflow: hidden;
    text-align: center;
    background-color: #f9f7f4
}

aside section {
    width: 100%;
    max-width: 1024px;
    overflow: hidden;
    margin: auto auto 35px;
}

aside section article {
    float: left;
    margin: 2%;
    padding: 1%;
    width: calc(82% / 3);
    background-color: #fff
}

aside section article a {
    overflow: hidden;
    display: block;
    margin-bottom: 10px
}

aside section article img {
    width: 100%;
    height: auto;
    max-width: 650px;
    max-height: 440px;
    display: block;
    transition: transform .2s
}

aside section article img:hover {
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1)
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 6.5vw
    }

    h2 {
        font-size: 45px
    }

    h3 {
        font-size: 30px
    }

    h4 {
        font-size: 45px
    }

    h5 {
        font-size: 20px
    }

    main article img {
        float: none;
        margin: 0 0 0 -40px;
        position: relative;
        left: 50%
    }

    main article div {
        text-align: center;
        width: 100%
    }

    aside section article {
        padding: 10px;
        width: calc(100% - 20px);
        margin: 10px 0 20px;
    }

    .carousel {
        position: relative;
        width: 80%;
        max-width: 600px;
        height: 400px;
        overflow: hidden;
        border: 2px solid #ccc;
        border-radius: 10px;
    }

    .carousel-image {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

    .contact-section h2 {
        color: #333;
    }

    .contact-section p {
        font-size: 18px;
        color: #555;
    }

    .contact-section a {
        display: inline-block;
        margin-top: 15px;
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        text-decoration: none;
        border-radius: 5px;
    }

    .contact-section a:hover {
        background-color: #0056b3;
    }
}


.imgHome {
    height: 70%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    -webkit-animation-name: fadeIn;
    -webkit-animation-duration: 2s;
    animation-name: fadeIn;
    animation-duration: 2s
}


.mainArticleDiv {
    float: left;
    width: calc(100% - 273px)
}

.bordo-testo {
    position: relative;
    display: inline-block;
    color: #00ff01;
}

.bordo-testo::before,
.bordo-testo::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    color: black;
}

.bordo-testo::before {
    -webkit-text-stroke: 1px black;
    text-stroke: 1px black;
}

.bordo-testo::after {
    -webkit-text-stroke: 2px black;
    text-stroke: 2px black;
}

.sezPadR {
    width: 48%;
    padding-right: 2%
}

.sezPadL {
    width: 48%;
    padding-left: 2%
}

label {
    font-size: 18px
}

input {
    border-bottom: solid 1px #999;
    border-left: solid 1px #999;
    border-top: none;
    border-right: none;
    width: calc(100% - 20px);
    padding: 10px;
    font-size: 15px;
    height: 20px;
    margin-top: 10px;
    outline: 0;
    color: #4e4e4e
}

input:focus {
    border-bottom: solid 1px red;
    border-left: solid 1px red;
    border-top: none;
    border-right: none;
    outline: 0
}

textarea {
    border-bottom: solid 1px #999;
    border-left: solid 1px #999;
    border-top: none;
    border-right: none;
    width: calc(100% - 20px);
    padding: 10px;
    height: 100px;
    margin-top: 10px;
    outline: 0;
    resize: none;
    color: #4e4e4e;
    font-size: 17px
}

textarea:focus {
    border-bottom: solid 1px red;
    border-left: solid 1px red;
    border-top: none;
    border-right: none;
    outline: 0;
    resize: none
}

input[type=submit] {
    height: 40px;
    width: 100%;
    text-align: center;
    background-color: #8fa885;
    color: #fff
}

input[type=submit]:hover {
    background-color: #434343;
    cursor: pointer
}

.rosso {
    color: red
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 6.5vw
    }

    .sezPadR {
        width: 100%;
        padding-right: 0;
        padding-bottom: 30px
    }

    .sezPadL {
        width: 100%;
        padding-left: 0
    }
}

@media screen and (max-width: 500px) {
    figure img {
        width: 50px
    }
}

.cookie-banner {
    background-color: #000;
    color: #fff;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
}

.cookie-banner p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px;
}

.rejectCookies,
.acceptCookies {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.button-group {
    display: flex; /* Dispone i pulsanti in linea orizzontale */
}

/* Stile per il pannello delle preferenze */
#preferencesPanel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    box-sizing: border-box;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10000; /* Assicurati che sia sopra ad altri elementi */
    max-width: 90vw; /* Imposta una larghezza massima per il pannello */
    max-height: 90vh; /* Imposta un'altezza massima per il pannello */
    overflow-y: auto; /* Abilita lo scroll verticale se necessario */
    flex-direction: column;
}

/* Stile per la sezione dei cookie necessari */
.required-section {
    text-align: center;
    margin: 20px 0;
}

.required-section h3 {
    margin: 10px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: not-allowed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50%;
    background-color: white;
    transition: .4s;
    left: 4px;
    bottom: 4px;
}

input:checked + .slider {
    background-color: #a5d6a7; /* Verde chiaro */
}

input:disabled + .slider {
    cursor: not-allowed;
    background-color: #a5d6a7; /* Verde chiaro */
}

input:checked:disabled + .slider:before {
    transform: translateX(26px);
    background-color: white;
}

#preferencesPanel h2 {
    font-size: 40px;
    margin: 0;
}

#preferencesPanel p {
    text-align: center;
    margin: 20px 0;
}

#preferencesPanel .buttons {
    display: flex;
    gap: 10px;
}

#preferencesPanel button {
    margin: 5px;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#preferencesPanel .reject-button {
    background-color: #f44336;
}

#preferencesPanel .accept-button {
    background-color: #4CAF50;
}

#preferencesPanel .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}


.rejectCookies {
    margin-right: auto;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.rejectCookies:hover {
    background-color: #2c2c2c;
    color: white;
}

.acceptCookies {
    background-color: #8fa885;
    color: #fff;
    transition: background-color 0.3s;
}

.acceptCookies:hover {
    background-color: #6c7f6b;
}


#cookieConsent {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(31, 31, 47, 0.9);
    color: white;
    text-align: center;
    z-index: 9999;
}

#cookieConsentContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#cookieConsent p {
    padding: 20px 100px;
    color: white;
    font-size: 14px;
}


#map1 {
    width: 90%;
    height: 450px;
    border: 0;
    margin: 20px auto;
    z-index: 1;
}

#iubenda-iframe {
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    z-index: 100000000 !important;
    background-color: #ffffff;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Stile per il contenuto dell'iframe */
#iubenda-iframe-content {
    padding: 20px;
    color: #333;
}

/* Stile per la sezione intestazione */
.purposes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.purposes-header-title {
    font-size: 18px;
    font-weight: bold;
}

/* Stile per i pulsanti */
.iub-btn {
    background-color: #1CC691;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
}

.iub-btn-reject {
    background-color: #ff4d4d;
}

.iub-btn-accept {
    background-color: #1CC691;
}

/* Stile per il testo */
.purposes-header-text {
    font-size: 14px;
    line-height: 1.6;
}

.purposes-content {
    margin-top: 10px;
}

.purposes-buttons {
    margin-top: 20px;
    text-align: center;
}

.purposes-section {
    margin-top: 20px;
}

.purposes-section-header {
    margin-bottom: 10px;
}

.title-link {
    color: #8fa885;
}

/* Effetto di ingrandimento al passaggio del mouse */
.clickable-img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.clickable-img:hover {
    transform: scale(1.05);
}

/* Stile per il lightbox (schermata scura e immagine grande) */
.lightbox {
    display: none; /* Inizialmente nascosto */
    position: fixed;
    z-index: 1000; /* Sopra a tutti gli altri contenuti */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Sfondo oscurato */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.lightbox-content img {
    width: 100%;
    height: auto;
}

/* Stile per il pulsante di chiusura (x) */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}