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

/* regole cookie  */
.cookie-consent-container {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-color: #eee;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    border-radius: 10px;
}

.cookie-consent-container p {
    text-align: center;
    margin: 20px 0;
}

.cookie-consent-container button {
    padding: 10px 20px;
    margin: 10px;
    background-color: #F5C5C8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.cookie-consent-container button:hover {
    background-color: #E8484C;
}

.contact {
    padding: 1rem 0;
    color: #eee;
    font-family: 'moda';
    font-weight: 200;
    font-size: 20px;
}

/* fine regole coockie */

#videoIntro {
    width: 100vw;
    height: 100vh;
    z-index: 100;
    transition: opacity 1.2s ease-out;
}

#mainContent {
    position: relative;
    z-index: 200;
}

/* @font-face */
@font-face {
    font-family: 'oldstyle';
    src: url('fonts/bodoni_oldstyle/bodoni-72-oldstyle-book.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'moda';
    src: url('fonts/Bodoni_Moda/BodoniModa-VariableFont_opsz\,wght.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'gotham';
    src: url('fonts/Gotham-Font/Gotham-Thin.otf');
    font-weight: 200;
    font-style: normal;
}

body {
    background-color: #130102;
    overflow-x: hidden;
}

/* regole pop up */
.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52rem;
    height: 44rem;
    background-color: rgba(235, 121, 127, 0.3);
    padding: 2rem 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.close-popup img {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    width: 50px;
    cursor: pointer;
    padding: 10px;
    color: #FBECEC;
}

.popup button {
    position: absolute;
    bottom: 40px;
    right: 60px;
}

.popup h2 {
    font-family: 'moda';
    font-size: 40px;
    font-weight: 200;
    color: #FBECEC;
    padding-bottom: 1rem;
}

.popup p {
    font-family: 'gotham';
    font-size: 20px;
    font-weight: 400;
    color: #FBECEC;
    padding-bottom: 2rem;
}

.popup a {
    text-decoration: none;
    color: #FBECEC;
    font-size: 16px;
    font-family: 'gotham';
}

.popup h3 {
    font-size: 16px;
    font-weight: bold;
    font-family: 'gotham';
    color: #FBECEC;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.popup span {
    font-size: 30px;
    color: #E8484C;
    font-family: 'gotham';
    font-weight: 500;
}

/* regole form contatti */
.side-contatti {
    border-radius: 20px;
    padding: 40px;
    margin-right: 1%;
}

#contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 5% 5%;
}

.top-container {
    display: flex;
    justify-content: space-between;
}

.contact-info,
.btn-container {
    flex-basis: 50%;
}

.contact-info {
    padding-top: 2rem;
}

.contact-info p {
    padding-bottom: 0.5em;
    font-size: 16px;
    font-family: 'gotham';
    color: white;
}

.contact-info p a {
    font-family: 'moda';
    color: #eee;
    text-decoration: none;
    padding: 1rem 0;
    font-size: 16px;
}

.none {
    display: block;
}

.contact-info p:nth-child(1) {
    font-size: 30px;
    margin-bottom: 2rem;
    font-family: 'gotham';
}

.btn-container {
    border-left: solid 1px #FBECEC;
}

.btn-container label {
    cursor: pointer;
}

.btn-label {
    width: 80%;
    padding: 20px;
    background-color: #FBECEC;
    border-radius: 20px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem 2rem;
}

.input-container {
    display: flex;
    flex-direction: column;
    padding-top: 5rem;
    width: 50%;
}

.input-container input,
.input-container textarea {
    margin-bottom: 1rem;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.contact-form input[type="submit"] {
    padding: 10px;
    border: none;
    background-color: #000;
    color: white;
    border-radius: 15px;
    cursor: pointer;
    width: 10%;
}

.contact-form input[type="submit"]:hover {
    background-color: #000;
}

.btn-form {
    padding-top: 2%;
    display: flex;
    align-items: flex-end;
    justify-content: start;
}

.submit-button {
    width: 13%;
    background-color: #C22923;
    border-radius: 30px;
    border: none;
    padding: 0.5rem;
    color: #FBECEC;
    margin-right: 6rem;
    font-size: 14px;
}

.submit-button img {
    vertical-align: middle;
    height: 20px;
    width: auto;
    margin-right: 5px;
}

#confirmation-message {
    text-align: center;
    color: #FBECEC;
}

/* header */
.header {
    width: 100vw;
    padding-left: 3rem;
    padding-top: 3rem;
    padding-right: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .contatti {
    display: flex;
    justify-content: end;
    padding-right: 1.5%;
}

.header .menù {
    display: flex;
    justify-content: start;
}

.header .menù,
.header .contatti {
    width: 20%;
}

.contatti a,
.menù a,
.side-menu a {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

.contatti a.hover-effect:hover,
.menù a.hover-effect:hover,
.side-menu a.hover-effect:hover {
    transform: translateY(-5px);
}

/* regole per side-menù */
.side-menu {
    width: 98%;
    height: 65vh;
    margin-top: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    position: fixed;
    top: -100vh;
    background-color: rgba(110, 19, 18, 0.3);
    transition: top 1s;
    z-index: 1000;
    backdrop-filter: blur(35px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2.5%;
}

.side-menu.open {
    top: 0;
}

.close-button {
    position: absolute;
    top: 3rem;
    left: 3rem;
    cursor: pointer;
}

.close-button img {
    width: 30px;
}

.side-menu .close-button img {
    width: 30px;
}

.img-menu {
    width: 2.5%;
}

/* regole menù ul */
.menu-list {
    list-style-type: none;
    text-align: left;
    margin-top: 5%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}

.menu-list li {
    padding: 10px 0;
    line-height: 4rem;
}

.menu-list li a {
    font-family: 'oldstyle';
    font-size: 40px;
    text-decoration: none;
    color: rgba(251, 236, 236, 0.6);
    transition: color 0.7s;
    padding-top: 25px;
}

.menu-list li a:hover {
    color: white;
    background-image: url('img/stella.png');
    background-repeat: no-repeat;
    background-position: top left;
    transition: background 0.5s ease, color 0.5s ease;
}

.submenu {
    display: block;
    list-style-type: none;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.9s ease-in-out;
}

.menu-list li:hover .submenu {
    max-height: 500px;
}

.submenu li {
    padding: 5px 0;
    line-height: 15px;
}

.submenu li a {
    font-family: 'gotham';
    font-size: 20px;
    font-weight: 800;
}

.submenu li a:hover {
    background-image: none;
}

.side-menu button {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
}

button {
    background-color: #E8484C;
    border: none;
    border-radius: 30px;
    padding: 0.5em 0.8em;
    font-family: 'gotham';
    font-size: 20px;
    color: #130102;
    transition: transform 0.5s ease;
}

button:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* regole per side-menu contatti */
#contattiMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50vw;
    height: 97.5vh;
    margin-top: 1rem;
    margin-left: 1rem;
    background-color: rgba(190, 140, 140, 0.486);
    transition: left 0.7s;
    z-index: 1000;
    backdrop-filter: blur(25px);
    border-radius: 20px;
}

#contattiMenu.open {
    right: 0;
}

/* regole per main */
.hero {
    width: 95%;
    margin: 4rem auto;
    height: 80vh;
    border-radius: 20px;
    overflow: hidden;
}

.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.img-home {
    width: 100%;
}

.philosophy-banner {
    text-align: center;
    margin: 20px 0;
}

.philosophy-banner span {
    color: #F5C5C8;
    font-weight: 300;
    font-size: 20px;
    font-family: 'gotham';
}

.philosophy-banner h2 {
    color: #F5C5C8;
    font-size: 80px;
    font-family: 'moda';
    font-weight: 400;
    padding-top: 1.5rem;
}

.philosophy-banner p {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    max-width: 50%;
    margin: 0 auto;
    color: #FBECEC;
    font-weight: 300;
    font-size: 20px;
    font-family: 'gotham';
    line-height: 2rem;
}

.m-t-phi {
    margin: 8% 0;
}

.arrow-animation {
    font-size: 30px;
    animation: bounce 2.5s infinite;
    margin-top: 2rem;
    color: #FBECEC;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.philosophy-text {
    display: block;
    font-family: 'gotham';
    font-weight: 300;
    margin-top: 10px;
    font-size: 20px;
    color: #FBECEC;
}

/* regole per trilogy */
.trilogy {
    width: 80vw;
    margin: 15vh auto;
    display: flex;
}

.trilogy div {
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex: 1;
    cursor: pointer;
    overflow: hidden;
}

.trilogy .text {
    font-size: 46px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #FBECEC;
}

.trilogy .bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    filter: blur(6px);
    transform: scale(1.04);
    transition: opacity .45s ease, filter .6s ease, transform .6s ease;
    z-index: 1;
}

.trilogy .content {
    position: relative;
    z-index: 2;
}

.trilogy .text {
    z-index: 3;
}

.trilogy .bg.visible {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.txt-terra {
    font-family: 'gotham';
    font-size: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: #FBECEC;
}

.txt-spirito {
    font-family: 'Bodoni';
    font-size: 50px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    font-style: italic;
    color: #FBECEC;
}

.txt-tradizione {
    font-family: 'Bodoni';
    font-size: 50px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    color: #FBECEC;
}

.btn-home {
    font-family: 'gotham';
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    padding: 1rem 2.5rem !important;
    background-color: #E8484C;
    font-size: 18px;
    color: white !important;
    border-radius: 100px;
}

/* regole per gallery slider */
.gallery {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 85vh;
}

.gallery-container {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.gallery-item {
    width: 230px;
    height: auto;
    padding-bottom: 5rem;
    opacity: 0.6;
    transition: transform 0.5s, opacity 0.5s;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
}

.gallery-item-primary {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 2;
}

.gallery-item-secondary-left {
    transform: translateX(-150%) scale(0.8);
    filter: blur(5px);
}

.gallery-item-secondary-right {
    transform: translateX(50%) scale(0.8);
    filter: blur(5px);
}

.custom-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    margin: 0 auto;
    padding-top: 5rem;
}

.btn-control {
    padding-top: 8.5rem;
}

.slider {
    -webkit-appearance: none;
    width: 10%;
    margin: 10px auto;
    height: 1px;
    background: #F5C5C8;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: red;
    cursor: pointer;
    transform: rotate(45deg);
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 2px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
}

.gallery-controls button {
    background-color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.wine-type-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wine-type-buttons button {
    margin-top: 0rem;
    background: none;
    color: #F5C5C8;
    font-family: 'moda';
    font-size: 46px;
    transition: transform 0.3s ease;
}

.wine-type-buttons button:hover {
    transform: translateY(-10px);
}

/* regole sezione call to action */
.call-to-action {
    width: 100%;
    min-height: 100vh;
    background-image: url('img/degustazione.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.call-to-action a {
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    background-color: #E8484C;
    color: #130102;
    border-radius: 100px;
}

/* regole per footer */
.footer {
    margin-top: 10vh;
    width: 100vw;
    min-height: 20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-top: solid 3px #F5C5C8;
}

.footer .contatti {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5%;
    width: 10%;
}

.footer .contatti a {
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
}

.footer .contatti a:hover {
    transform: translateY(-10px);
    cursor: pointer;
}

.contatti a:last-child {
    margin-right: 0;
}

.footer .contatti a img {
    width: 50%;
}

.footer .menù {
    width: 33%;
    display: flex;
    text-align: left;
    padding-left: 3rem;
}

.footer .menù a {
    text-decoration: none;
    font-size: 20px;
    line-height: 1rem;
}

.footer .logo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #FBECEC;
    font-size: 20px;
    font-family: 'gotham';
    font-weight: 300;
    margin-bottom: 1.5%;
}

.footer .logo p {
    padding-top: 2rem;
}

.privacy a {
    color: #F5C5C8;
    text-decoration: none;
    font-size: 18px;
    margin-top: 1rem;
}

.site-map {
    color: #FBECEC;
    font-size: 20px;
    font-family: 'gotham';
    font-weight: 300;
    margin: 1rem 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.site-map:hover {
    transform: translateY(-5px);
    color: #F5C5C8;
}

.scritta-foot p {
    color: white;
    font-family: 'gotham';
    font-size: 18px;
    margin-bottom: 1.5%;
}

.scritta-foot a {
    color: white;
    font-family: 'gotham';
    font-size: 16px;
    text-decoration: none;
}

.scritta-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5%;
}

.contatti .privacy a {
    font-family: 'gotham';
    font-size: 16px;
    color: white;
}

.footer .logo,
.contatti .contatti {
    width: 20%;
}

/* =========================
   PAGINA VINI (DESKTOP)
   ========================= */
.container {
    margin-top: 15vh;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    /* ancoraggio per .wine-specs */
    padding-bottom: 3rem;
    transition: transform 0.3s ease;
    gap: 2rem;
}

.bottle.is-blurred:hover { 
    transform: none; 
}

/* Bottiglie non selezionate quando una scheda è aperta */
.bottle.is-blurred {
    filter: blur(4px);
    opacity: 0.5;                 /* già coerente con il tuo stile */
    transition: filter .20s ease, opacity .20s ease, transform .20s ease;
    pointer-events: none;          /* evita click “accidentali” sulle sfocate */
}

/* La bottiglia attiva resta nitida e reattiva */
.bottle.is-active {
    filter: none;
    opacity: 1 !important;
}


.bottle {
    width: 15%;
    height: auto;
    opacity: 0.5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, order 0.3s ease, transform 0.3s ease, margin-right 0.35s ease;
    position: relative;
}

#bottle1 {
    order: 1;
}

#bottle2 {
    order: 2;
}

#bottle3 {
    order: 3;
}

#bottle4 {
    order: 4;
}

#bottle5 {
    order: 5;
}

.bottle img {
    width: 50%;
    height: 20%;
}

.bottle:hover {
    transform: translateY(-10px);
    opacity: 1 !important;
    cursor: pointer;
}

.bottle:hover:before {
    position: absolute;
    bottom: 80%;
    left: 70%;
    transform: translateY(-70%);
    color: #E8484C;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.chiudi-spec {
    background-color: #EB797F;
    color: white;
    font-family: 'gotham';
    font-weight: 800;
}

/* Schede specifiche — DESKTOP: assolute (posizionate via JS accanto alla bottiglia) */
.wine-specs {
    display: none;
    /* visibilità gestita da JS con .visible */
    position: absolute;
    /* ancorata al .container */
    left: 0;
    /* verrà sovrascritto da JS */
    top: 0;
    /* verrà sovrascritto da JS */
    width: 25% !important;
    /* larghezza scheda */
    min-height: auto !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: transparent;
    /* leggero overlay scuro dietro l'immagine, se serve */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    z-index: 1001;
    transition: left 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.specs-content {
    height: fit-content;
    padding: 4rem;
    padding-bottom: 0;
    border-radius: 20px;
    z-index: 1001;
    display: block !important;
    background: transparent;
}

.specs-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

.specs-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-buttons {
    text-align: center;
    padding: 10px;
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.download-button {
    background-color: #EB797F;
    color: white;
    padding: 10px 20px;
    margin: 0 !important;
    text-decoration: none;
    border-radius: 100px;
    font-size: 18px;
}

.download-button:hover {
    background-color: #E8484C;
}

.download-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.wine-specs.visible {
    display: block;
}

.wine-specs.visible,
.specs-content.visible {
    display: block;
}

/* switch */
.switch-specs {
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check {
    display: none;
}

.checkbox {
    width: 223px;
    height: 40px;
    background-color: #261F1F;
    border-radius: 30px;
    position: relative;
    color: #fff;
    overflow: hidden;
}

#checkbox_toggle {
    display: none;
}

.checkbox .toggle {
    width: 100px;
    height: 30px;
    position: absolute;
    border-radius: 30px;
    left: 5px;
    cursor: pointer;
    background-color: #F5C5C8;
    transition: 0.7s;
    opacity: 0.4;
}

.checkbox .slide {
    width: 230px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    cursor: pointer;
}

.checkbox .slide .text {
    font-size: 14px;
    font-family: 'gotham';
    font-weight: 300;
    z-index: 100;
    cursor: pointer;
}

.check:checked+.checkbox .slide .toggle {
    transform: translateX(113px);
    background-color: #F5C5C8;
}

.check:checked+.checkbox .slide {
    color: #fff;
}

.ro-bi {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
}

.ro-bi a {
    text-decoration: none;
    color: #F5C5C8;
    font-size: 46px;
    font-family: 'bodoni';
    margin-left: 5rem;
}

/* regole per degustazioni */
.container-flex {
    display: flex;
    width: 100%;
    height: 90vh;
    overflow: inherit;
    margin: 0 auto;
}

.degustazioni {
    width: 50%;
    padding: 10rem 0rem 0rem 8rem;
    height: 100vh;
}

.title h1 {
    color: #F5C5C8;
    font-size: 200px;
    font-weight: 100;
    font-family: 'moda';
}

.deg-descript {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: left;
}

.deg-descript span {
    flex-basis: 45%;
    margin: 10px;
    color: #F5C5C8;
}

.sfondo-deg img {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    background-repeat: no-repeat;
    background-position: right;
}

.nostra-prop {
    width: 70%;
    min-height: auto;
    margin-top: 5rem;
    position: relative;
}

.nostra-prop img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nostra-prop button {
    position: absolute;
    bottom: 3%;
    right: 3%;
    background-color: #F5C5C8;
}

.mobile {
    display: none;
}

/* ========== media quesry pc 11–16" ========= */
@media only screen and (min-width: 800px) and (max-width: 1550px) {

    .header .menù img {
        max-width: 60px;
    }

    .header .contatti img {
        max-width: 45px;
    }

    .d-n {
        display: none;
    }

    .popup {
        display: none;
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 40rem;
        height: 35rem;
        background-color: rgba(235, 121, 127, 0.3);
        padding: 2rem 2rem;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        z-index: 1001;
        border-radius: 20px;
        backdrop-filter: blur(8px);
    }

    .close-popup img {
        background-color: black;
        width: 30px;
    }

    .popup h2 {
        font-size: 36px;
        padding-bottom: 1rem;
    }

    .popup p {
        font-size: 18px;
        padding-bottom: 1rem;
    }

    .popup button {
        bottom: 20px;
        right: 30px;
    }

    .popup a {
        font-size: 14px;
    }

    .popup h3 {
        font-size: 14px;
    }

    .site-map {
        color: #FBECEC;
        font-size: 16px;
        font-family: 'gotham';
        font-weight: 300;
        margin: 0.5rem 0.5rem;
        transition: all 0.4s ease;
        cursor: pointer;
    }

    .footer .logo {
        font-size: 18px;
        text-align: center;
    }

    .philosophy-banner h2 {
        color: #F5C5C8;
        font-size: 50px;
        font-family: 'moda';
        font-weight: 400;
        padding-top: 1.5rem;
    }

    .degu-footer {
        margin-top: 30rem;
    }

    body {
        overflow-x: hidden;
    }

    /* popup contatti */
    .side-contatti {
        border-radius: 20px;
        padding: 1px;
    }

    #contact-form {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        padding: 1% 5%;
    }

    .top-container {
        height: auto;
        display: flex;
        justify-content: space-between;
    }

    .contact-info,
    .btn-container {
        flex-basis: 50%;
    }

    .contact-info {
        padding-top: 2.5rem;
    }

    .contact-info p {
        padding-bottom: .5em;
        font-size: 16px;
        font-family: 'gotham';
        color: white;
    }

    .none {
        display: block;
    }

    .contact-info p:nth-child(1) {
        font-size: 20px;
        margin-bottom: 2rem;
        font-family: 'gotham';
    }

    .btn-container {
        border-left: solid 1px #FBECEC;
    }

    .btn-container label {
        cursor: pointer;
    }

    .btn-label {
        width: 90%;
        padding: 15px;
        background-color: #FBECEC;
        border-radius: 20px;
        box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
        margin: 2rem 2rem;
    }

    .input-container {
        display: flex;
        flex-direction: column;
        padding-top: 1rem;
        width: 50%;
    }

    .input-container input,
    .input-container textarea {
        margin-bottom: 1rem;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #ccc;
        cursor: pointer;
    }

    .contact-form input[type="submit"] {
        padding: 10px;
        border: none;
        background-color: #000;
        color: white;
        border-radius: 15px;
        cursor: pointer;
        width: 10%;
    }

    .contact-form input[type="submit"]:hover {
        background-color: #000;
    }

    .btn-form {
        margin-top: -7.5rem;
        padding-top: 0rem;
        display: flex;
        align-items: flex-end;
        justify-content: end;
    }

    .submit-button {
        width: 15%;
        background-color: #C22923;
        border-radius: 30px;
        border: none;
        padding: 0.5rem;
        color: #FBECEC;
        margin-right: 6rem;
        font-size: 14px;
    }

    .submit-button img {
        vertical-align: middle;
        height: 20px;
        width: auto;
        margin-right: 5px;
    }

    #confirmation-message {
        text-align: center;
        color: #FBECEC;
    }

    /* side menù  */
    .side-menu {
        width: 50vw;
        height: 97.5vh;
        margin-top: 1rem;
        margin-left: 1rem;
        position: fixed;
        left: -52vw;
        top: 0;
        background-color: rgba(110, 19, 18, 0.3);
        transition: left 0.7s;
        z-index: 1000;
        backdrop-filter: blur(8px);
        border-radius: 20px;
    }

    .side-menu.open {
        left: 0;
    }

    .close-button {
        position: absolute;
        top: 1rem;
        left: 1rem;
        cursor: pointer;
    }

    .close-popup img {
        width: 20px;
    }

    .close-button {
        width: 20px;
    }

    .side-contatti .close-button img {
        width: 20px;
    }

    .menu-list {
        list-style-type: none;
        text-align: left;
        margin-top: 10vh;
        padding-left: 19vh;
    }

    .menu-list li {
        padding: 10px 0;
        line-height: 4rem;
    }

    .menu-list li a {
        font-family: 'oldstyle';
        font-size: 30px;
        text-decoration: none;
        color: rgba(251, 236, 236, 0.6);
        transition: color 0.7s;
    }

    .menu-list li a:hover {
        color: white;
        background-image: url('img/stella.png');
        background-repeat: no-repeat;
        background-position: left center;
        padding-left: 40px;
        transition: background 0.5s ease, color 0.5s ease;
    }

    .submenu {
        display: block;
        list-style-type: none;
        margin-left: 5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.9s ease-in-out;
    }

    .menu-list li:hover .submenu {
        max-height: 500px;
    }

    .submenu li {
        padding: 5px 0;
        line-height: 3rem;
    }

    .side-menu button {
        position: absolute;
        bottom: 3rem;
        right: 3rem;
    }

    button {
        background-color: #E8484C;
        border: none;
        border-radius: 30px;
        padding: 0.5em 0.8em;
        font-family: 'gotham';
        font-size: 16px;
        color: #130102;
        transition: transform 0.5s ease;
    }

    button:hover {
        transform: scale(1.1);
        cursor: pointer;
    }

    /* degustazione */
    .container-flex {
        width: 100%;
        display: flex;
    }

    .degustazioni {
        width: 50%;
        padding: 4rem 2rem;
        height: 50vh;
    }

    .title h1 {
        color: #F5C5C8;
        font-size: 58px;
        font-weight: 100;
        font-family: 'moda';
    }

    .deg-descript {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        text-align: left;
    }

    .deg-descript span {
        flex-basis: 45%;
        margin: 10px;
        color: #F5C5C8;
    }

    .sfondo-deg {
        width: 50%;
        height: 50vh;
        object-fit: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .nostra-prop {
        width: 98%;
        margin: 0 auto;
        min-height: auto;
        margin-top: 2rem;
        position: relative;
    }

    .nostra-prop img {
        width: 90%;
        height: 80%;
        object-fit: contain;
    }

    .nostra-prop button {
        font-size: 16px;
        position: absolute;
        bottom: 3%;
        right: 3%;
        background-color: #F5C5C8;
    }

    /* pag vini — NOTE: qui lasciamo .wine-specs absolute come in desktop */
    .wine-specs {
        display: none;
        width: 25% !important;
        height: auto !important;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        position: absolute;
        left: 0;
        top: 0;
        transition: left 0.3s ease, top 0.3s ease, opacity 0.3s ease;
        z-index: 1001;
    }

    .wine-specs #closeSpecsButton {
        font-size: 10px;
    }

    .specs-content {
        height: fit-content;
        padding: 4rem;
        padding-bottom: 0;
        border-radius: 20px;
        background-color: transparent;
        z-index: 1001;
        display: block !important;
    }

    .specs-container {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .download-buttons {
        text-align: center;
        padding: 5px;
        margin-top: auto;
    }

    .download-button {
        background-color: #EB797F;
        color: white;
        padding: 5px 10px;
        margin: 0 !important;
        text-decoration: none;
        border-radius: 100px;
        font-size: 14px;
    }

    .download-button:hover {
        background-color: #E8484C;
    }

    .download-icon {
        margin-right: 8px;
        vertical-align: middle;
    }

    .trilogy {
        width: 100vw;
        margin: 10vh auto;
        display: flex;
    }

    .content img {
        background-size: contain;
        height: auto;
        max-width: 20%;
    }

    .trilogy .text {
        font-size: 28px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .gallery {
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 70vh;
    }

    .gallery-container {
        display: flex;
        justify-content: center;
        position: relative;
        margin-bottom: 0px;
    }

    .gallery-item {
        width: 130px;
        padding-bottom: 5rem;
        opacity: 0.6;
        transition: transform 0.5s, opacity 0.5s;
        position: absolute;
        left: 50%;
        transform: translateX(-50%) scale(0.8);
    }

    .gallery-item-primary {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        z-index: 2;
    }

    .gallery-item-secondary-left {
        transform: translateX(-150%) scale(0.8);
        filter: blur(5px);
    }

    .gallery-item-secondary-right {
        transform: translateX(50%) scale(0.8);
        filter: blur(5px);
    }

    .custom-slider {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20%;
        margin: 0 auto;
        padding-top: 1rem;
    }

    .btn-control {
        padding-top: 7rem;
    }

    .slider {
        -webkit-appearance: none;
        width: 70%;
        margin: 10px auto;
        height: 2px;
        background: #F5C5C8;
        outline: none;
        opacity: 0.7;
        -webkit-transition: .2s;
        transition: opacity .2s;
    }

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        background: #C22923;
        cursor: pointer;
        transform: rotate(45deg);
    }

    .slider::-moz-range-thumb {
        width: 25px;
        height: 2px;
        background: #4CAF50;
        cursor: pointer;
        border-radius: 50%;
    }

    .wine-type-buttons button {
        margin-top: 0rem;
        background: none;
        color: #F5C5C8;
        font-family: 'moda';
        font-size: 35px;
        transition: transform 0.3s ease;
    }

    .wine-type-buttons button:hover {
        transform: translateY(0);
    }

    .footer {
        padding-top: 0.2em;
    }

    .footer .menù {
        width: 33.33%;
    }

    .menù a {
        font-size: 13px;
        text-decoration: none;
        transition: all 0.6s ease;
    }

    .footer .logo {
        width: 33.33%;
    }

    .footer p {
        width: 80%;
        font-size: 13px;
    }

    .footer .contatti {
        width: 33.33%;
    }

    .philosophy-banner h2 {
        color: #F5C5C8;
        font-size: 30px;
        font-family: 'moda';
        font-weight: 400;
        padding-top: 1.5rem;
    }

    .philosophy-banner p {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        width: 80%;
        margin: 0 auto;
        color: #FBECEC;
        font-weight: 300;
        font-size: 16px;
        font-family: 'gotham';
        line-height: 2rem;
    }
}

/* ========== MOBILE ========= */
@media (max-width: 800px) {
    .mobile {
        display: block;
        min-height: 100vh;
        background-color: #130102;
    }

    .slider-mobile {
        width: 100%;
        height: 100%;
        padding: 2rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .slide-mob img {
        max-width: 100%;
    }

    .d-n {
        display: none;
    }

    .call-to-action {
        width: 100%;
        min-height: 50vh;
        background-image: none;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }

    .call-to-action a {
        text-decoration: none;
        padding: 0.5rem 1.5rem;
        background-color: #E8484C;
        color: #130102;
        border-radius: 100px;
    }

    .philosophy-banner {
        text-align: center;
        margin: 20px 0;
    }

    .philosophy-banner span {
        color: #F5C5C8;
        font-weight: 300;
        font-size: 18px;
        font-family: 'gotham';
    }

    .philosophy-banner h2 {
        color: #F5C5C8;
        font-size: 30px;
        font-family: 'moda';
        font-weight: 400;
        padding-top: 1.5rem;
    }

    .philosophy-banner p {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        max-width: 80%;
        margin: 0 auto;
        color: #FBECEC;
        font-weight: 300;
        font-size: 16px;
        font-family: 'gotham';
        line-height: 2rem;
    }

    /* MOBILE: overlay centrato per #specs */
    .wine-specs {
        background-color: rgba(0, 0, 0, 0.8);
        display: none;
        width: 25% !important;
        max-width: auto !important;
        height: auto;
        max-height: 80vh;
        background-size: contain;
        background-position: center;
        position: fixed;
        /* overlay su mobile */
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        transition: opacity 0.3s ease;
        z-index: 1001;
        padding: 1rem;
        overflow-y: auto;
        border-radius: 16px;
    }

    .specs-content {
        height: fit-content;
        padding: 2rem;
        padding-bottom: 0;
        border-radius: 12px;
        background-color: transparent;
        z-index: 1001;
        display: block !important;
    }

    .none {
        display: none;
    }

    .popup {
        width: 90vw;
        margin: auto;
        height: auto;
        padding: 2rem;
        background-color: rgba(235, 121, 127, 1);
    }

    .close-popup img {
        top: 20px;
        width: 40px;
    }

    .popup h2 {
        font-size: 25px;
        padding-bottom: 1rem;
        color: #fff;
        opacity: 1;
    }

    .popup p {
        font-size: 16px;
        padding-bottom: 1rem;
        color: #fff;
        opacity: 1;
    }

    .popup button {
        bottom: 20px;
        right: 30px;
    }

    .popup a {
        font-size: 14px;
        color: #fff;
        opacity: 1;
    }

    .popup h3 {
        font-size: 14px;
        color: #fff;
        opacity: 1;
    }

    .popup span {
        opacity: 1;
        color: #fff;
        font-size: 20px;
    }

    button {
        background-color: #E8484C;
        border: none;
        border-radius: 30px;
        padding: 0.5em 0.8em;
        font-family: 'gotham';
        font-size: 14px;
        color: #130102;
        transition: transform 0.5s ease;
    }

    /* header */
    .menù img {
        max-width: 50px;
    }

    .logo img {
        max-width: 100px;
    }

    .contatti img {
        max-width: 40px;
    }

    /* side menu - side contatti */
    #contact-form {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 90vh;
        box-shadow: 0 0 10px rgba(0, 0, 0, 1);
        padding: 0% 5%;
    }

    #contattiMenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 92.5vw;
        height: 90vh;
        margin-top: 1rem;
        margin-right: 1rem;
        background-color: rgba(251, 236, 236, 1);
        transition: left 0.7s;
        z-index: 1000;
        backdrop-filter: blur(8px);
        border-radius: 20px;
    }

    .side-contatti {
        padding: 0;
    }

    #contattiMenu .close-button img {
        max-width: 30px;
        filter: brightness(70%);
    }

    .close-button {
        position: absolute;
        top: 1rem;
        left: 1rem;
        cursor: pointer;
    }

    #confirmation-message {
        position: absolute;
        bottom: -5rem;
        left: 26vw;
        text-align: center;
        color: black;
        font-size: 14px;
        padding-bottom: 5rem;
    }

    .top-container,
    .contact-info,
    .btn-container,
    .input-container {
        flex-basis: 100%;
        width: 100%;
    }

    .top-container {
        flex-direction: column;
    }

    .btn-container {
        border-left: none;
    }

    .btn-form {
        padding-top: 0;
        margin-bottom: 5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .submit-button {
        width: 30%;
        margin-right: 0;
        align-self: center;
    }

    .contact {
        padding: 1rem 0;
        color: #261F1F;
        font-family: 'moda';
        font-weight: 100;
        font-size: 18px;
    }

    .contact-info p a {
        color: #261F1F;
        opacity: 0.6;
    }

    .contact-info p {
        padding-bottom: 0.5em;
        font-size: 14px;
        font-family: 'gotham';
        color: #261F1F;
        text-align: center;
    }

    .contact-info p:nth-child(1) {
        font-size: 20px;
        margin-bottom: 2rem;
        font-family: 'gotham';
    }

    .btn-label {
        width: 80%;
        padding: 10px;
        background-color: #FBECEC;
        border-radius: 20px;
        box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
        margin: 2rem 2rem;
    }

    .input-container {
        display: flex;
        flex-direction: column;
        padding-top: 0;
        padding-bottom: 0;
    }

    .side-menu {
        width: 92.5vw;
        height: 90vh;
        margin-top: 1rem;
        margin-left: 1rem;
        position: fixed;
        left: -100vw;
        top: 0;
        background-color: rgba(110, 19, 18, 0.6);
        transition: left 0.7s;
        z-index: 1000;
        backdrop-filter: blur(8px);
        border-radius: 20px;
    }

    .side-menu button {
        position: absolute;
        bottom: 2rem;
        right: 3rem;
    }

    .menu-list {
        list-style-type: none;
        text-align: left;
        margin-top: 15vh;
        padding-left: 10vh;
    }

    .menu-list li {
        padding: 10px 0;
        line-height: 2.5rem;
    }

    .menu-list li a {
        font-family: 'oldstyle';
        font-size: 36px;
        text-decoration: none;
        color: rgba(251, 236, 236, 0.6);
        transition: color 0.7s;
    }

    .side-menu img {
        width: 30px;
    }

    .hero {
        width: 100vw;
        margin: 0;
        height: 80vh;
        border-radius: 0;
    }

    .trilogy {
        width: 100vw;
        margin: 10vh auto;
        display: flex;
    }

    .content img {
        background-size: contain;
        height: auto;
        max-width: 40%;
    }

    .trilogy .text {
        font-size: 18px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    /* slider mobile */
    .gallery {
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 70vh;
    }

    .gallery-container {
        display: flex;
        justify-content: center;
        position: relative;
        margin-bottom: 0px;
    }

    .gallery-item {
        width: 120px;
        padding-bottom: 5rem;
        opacity: 0.6;
        transition: transform 0.5s, opacity 0.5s;
        position: absolute;
        left: 50%;
        transform: translateX(-50%) scale(0.8);
    }

    .gallery-item-primary {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        z-index: 2;
    }

    .gallery-item-secondary-left {
        transform: translateX(-150%) scale(0.8);
        filter: blur(5px);
    }

    .gallery-item-secondary-right {
        transform: translateX(50%) scale(0.8);
        filter: blur(5px);
    }

    .custom-slider {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50%;
        margin: 0 auto;
        padding-top: 1rem;
    }

    .btn-control {
        padding-top: 0.2rem;
    }

    .slider {
        -webkit-appearance: none;
        width: 70%;
        margin: 10px auto;
        height: 2px;
        background: #F5C5C8;
        outline: none;
        opacity: 0.7;
        -webkit-transition: .2s;
        transition: opacity .2s;
    }

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        background: #C22923;
        cursor: pointer;
        transform: rotate(45deg);
    }

    .slider::-moz-range-thumb {
        width: 25px;
        height: 2px;
        background: #4CAF50;
        cursor: pointer;
        border-radius: 50%;
    }

    .wine-type-buttons button {
        margin-top: 0rem;
        background: none;
        color: #F5C5C8;
        font-family: 'moda';
        font-size: 35px;
        transition: transform 0.3s ease;
    }

    .wine-type-buttons button:hover {
        transform: translateY(0);
    }

    /* footer */
    .footer {
        width: 100%;
        height: 300px;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }

    .footer .logo {
        order: 2;
    }

    .footer .logo img {
        max-width: 150px;
    }

    .footer .logo p {
        font-size: 16px;
        width: 80%;
        text-align: center;
    }

    .footer .contatti {
        padding-top: 2rem;
        order: 1;
    }

    .footer .menù {
        order: 2;
        width: 100%;
        display: none;
        flex-direction: column;
        text-align: left;
    }

    #white-wines {
        margin-left: 1.5rem;
    }

    /* pagina specifiche mobile */
    .container {
        flex-direction: column;
    }

    .bottle {
        opacity: 1;
        width: 60%;
        padding: 3rem 0;
    }

    .bottle:hover {
        transform: translateY(-10px);
        opacity: 1;
        cursor: pointer;
    }

    .bottle:hover:before {
        display: none;
    }

    .wine-specs {
        display: none;
        height: auto;
    }

    .wine-specs.visible {
        display: block;
        z-index: 1000;
        position: fixed;
        width: 100vw;
        max-height: 100vh;
        top: 10vh;
        left: 0;
        right: 0;
        bottom: 0;
        background-repeat: no-repeat;
    }

    .specs-content {
        width: 100%;
        height: 100%;
    }

    .checkbox {
        display: none;
    }

    .ro-bi {
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding-top: 3rem;
    }

    .ro-bi a {
        text-decoration: none;
        color: #F5C5C8;
        font-size: 46px;
        font-family: 'bodoni';
        margin-left: 0;
    }

    #closeSpecsButton {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        background-color: red;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    #closeSpecsButton:hover {
        background-color: darkred;
    }

    .download-buttons {
        text-align: center;
        padding: 10px;
        margin-top: auto;
    }

    .download-button {
        background-color: #EB797F;
        color: white;
        padding: 5px 10px;
        margin: 0 !important;
        text-decoration: none;
        border-radius: 100px;
        font-size: 14px;
    }

    /* degustazioni */
    .container-flex {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .degustazioni {
        width: 100%;
        padding: 0;
        height: 100vh;
    }

    .title h1 {
        margin-top: 3rem;
        text-align: center;
        color: #F5C5C8;
        font-size: 35px;
        font-weight: 100;
        font-family: 'moda';
    }

    .deg-descript {
        margin-top: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        text-align: center;
    }

    .deg-descript span {
        flex-basis: 45%;
        margin: 10px;
        color: #F5C5C8;
    }

    .sfondo-deg {
        width: 50%;
        height: 50vh;
        object-fit: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: none;
    }

    .nostra-prop {
        width: 98%;
        margin: 0 auto;
        min-height: auto;
        margin-top: 5rem;
        position: relative;
    }

    .nostra-prop img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .nostra-prop button {
        position: absolute;
        bottom: 3%;
        right: 3%;
        background-color: #F5C5C8;
    }
}