:root {
  --fralibaColor: #b9a679;
  --fralibaColor2: #BA3431;
  --fralibaColorLight: #F1EEE8;
  --fralibaColorDark: #888473;
}

.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.hero .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(0, 0, 0, 0.35); /* colore e trasparenza dell’overlay */
  z-index: 1; /* sta sotto il testo */
}

.swiper-slide h1, .swiper-slide h2 {
    color: #fff;
    font-size: clamp(3rem, 5vw, 7rem);
    padding: 0 20px;
    text-align: center;
    z-index: 10;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sacramento';
    font-weight: 100;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
    margin: 0;
    line-height: 1.4;
}

.swiper-slide-active h1, .swiper-slide-active h2 {
    opacity: 1;
    transform: translateY(0);
}

/* --- PAGINATION --- */
.swiper-pagination-bullet {
    background: var(--fralibaColor) !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    margin: 10px !important;
    transition: opacity 0.3s ease, border 0.3s ease;
    position: relative;
}

.hero .swiper-pagination-bullet {
    background: #fff !important;
}

.hero .swiper-pagination-bullet-active::after {
    border: 1px solid #fff;
}

/* Bullet attivo */
.swiper-pagination-bullet-active {
    background: transparent;
    opacity: 1;
}

/* Contorno animato solo qui */
.swiper-pagination-bullet-active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    transform: translate(-50%, -50%) !important;
    border-radius: 50%;
    border: 1px solid var(--fralibaColor);
    opacity: 1;
    animation: bulletScale 0.4s ease forwards;
}

#scroll-progress {
    position: fixed;
    top: 0;
    width: 0%;
    height: 2px;
    background: var(--fralibaColor);
    z-index: 10000;
}

/* --- ANIMAZIONE SCALE-IN --- */
@keyframes bulletScale {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- CTA IN BASSO --- */
.hero-bottom {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    color: #fff;
    font-weight: 500;
    font-size: 1.4rem;
    font-family: 'Cormorant';
    z-index: 2;
}

.hero-bottom a {
    color: #fff;
    margin-left: 10px;
    font-size: 1.4rem;
    transition: color 0.3s;
    text-decoration: none;
}

.hero-bottom a i {
    font-size: 1.1rem;
}

.hero-bottom a:hover {
    color: var(--fralibaColor);
}

.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: 80px !important;
}

.info-section, .contact-section{
    padding: 120px 0;
    background: url('../img/body-bg.jpg');
}

.subtitle{
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    font-style: normal;
    color: var(--fralibaColor);
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
}

/* Linee decorative */
.subtitle::before,
.subtitle::after {
    content: "";
    position: absolute;
    left: 40px;
    transform: translateX(-50%);
    height: 2px;
    background-color: var(--fralibaColor);
    border-radius: 2px;
}

.text-center .subtitle::before, 
.text-center .subtitle::after {
    left: 50%;
}

.bg-section{
    padding: 120px 0;
    background-color: var(--fralibaColorLight);
}

.no-container{
    padding: 120px 80px;
}

/* Linea superiore (più lunga) */
.subtitle::before {
    bottom: -8px; /* distanza dal testo */
    width: 80px;
    opacity: 0.8;
}

/* Linea inferiore (più corta, più bassa) */
.subtitle::after {
    bottom: -14px;
    width: 50px;
    opacity: 0.6;
}

.title{
    font-size: clamp(2rem, 3vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
}

.subtitle-section{
    color: var(--fralibaColorDark);
    font-size: 20px;
    font-weight: 600;
    padding: 13px 0 0;
}

.pr-dk{
    padding-right: 100px !important;
}

.pl-dk{
    padding-left: 100px !important;
}

.text{
    color: var(--fralibaColorDark);
    font-size: 22px;
    font-weight: 600;
}

.text-small {
    font-size: 20px !important;
}

.info-section p:not(.dish-desc):not(.subtitle-section):not(.text-form) {
    margin: 2em 0 !important;
}

.image-wrapper img{
    height: 575px;
    object-fit: cover;
}

.contacts{
    background-color: #202020;
    padding: 20px;
    color: #fff;
    margin-top: 50px;
    font-size: 20px;
    border: 2px solid var(--fralibaColor);
}

.img-menu{
    height: auto !important;
    object-fit: cover !important;
    max-height: 590px;
}

.img-menu-two{
    margin-top: 24px;
}

.contacts a{
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

img.mb-50{
    max-height: 265px;
    object-fit: cover;
}

.filter{
    filter: brightness(1.1);
}

.contacts a:hover{
    color: var(--fralibaColor);
}

.menu-section img{
    height: 500px;
    object-fit: cover;
}

.titleTwo{
    font-size: clamp(2rem, 2vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
}

.menu-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.menu-line .dish-name, .menu-line .price {
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0;
}

.menu-line .dots {
    flex: 1;
    border-bottom: 1px dotted #666;
    margin: 0 10px;
    height: 1px;
    min-width: 20px;
}

.dish-desc {
    font-size: 1.1rem;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

.reviews-section{
    padding: 120px 0;
    background-color: #202020;
    color: #fff;
}

.reviews-section .swiper-horizontal>.swiper-pagination-bullets, .reviews-section .swiper-pagination-bullets.swiper-pagination-horizontal, .reviews-section .swiper-pagination-custom, .reviews-section .swiper-pagination-fraction {
    bottom: 0px !important;
}

.review{
    padding-top: 50px;
}

.reviews-swiper{
    padding-bottom: 70px !important;
}

.reviews-swiper p{
    margin: 2rem 0 0;
    font-size: 1.2em;
    font-style: italic;
}

.reviews-swiper h4{
    font-size: 1.7em;
}

.gallery-section {
    padding: 15px;
    background: linear-gradient(to bottom, #202020 0%, #000000 100%);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
    grid-auto-rows: 350px;
    gap: 15px;
}

.item {
    position: relative;
    overflow: hidden;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.item:hover img {
    transform: scale(1.05);
}

  /* proporzioni */
.item.square {
    grid-row: span 1;
    grid-column: span 1;
}

.item.tall {
    grid-row: span 2; /* 2 volte l’altezza */
    grid-column: span 1;
}

.item.wide {
    grid-row: span 1;
    grid-column: span 2; /* 2 volte la larghezza */
}

.fralibaColor{
    color: var(--fralibaColor) !important;
    font-style: italic;
}

.item.big {
    grid-row: span 2;   /* due righe */
    grid-column: span 2; /* due colonne */
}

.form-wrapper{
    width: 70%;
    margin: auto;
}

#response, #response-feedback{
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Cormorant';
    padding: 6px 20px;
    background: var(--fralibaColor);
    color: white;
    border-left: 4px solid #88847363;
    display: none;
}

#response.show, #response-feedback.show{
  display: block;
}

form.hide {
  display: none !important;
}

.form-wrapper button, .btn-form{
    font-family: 'Cormorant';
    border: none;
    background: #202020;
    color: white;
    padding: 10px 32px;
    font-size: 18px;
    margin: 0 auto;
    transition: background 0.6s ease;
}

.form-wrapper button:hover, .btn-form:hover{
    background: var(--fralibaColor);
    cursor: pointer;
}

.form-wrapper label{
    font-size: 18px !important;
    font-family: "Cormorant", sans-serif !important;
}

input, textarea{
    font-family: "Cormorant", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    font-style: normal;
    line-height: 1.25em !important;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0px;
    outline: none;
    box-shadow: none;
    border-radius: 0px !important;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--fralibaColor) !important;
    outline: 0;
    box-shadow: none !important
}

.p-50{
    padding: 50px !important;
}

.site-footer {
    background: linear-gradient(to bottom, #313131 0%, #181818 100%);
    color: #fff;
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

  /* --- PARTE ALTA --- */
.footer-top {
    padding: 60px 40px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    gap: 30px;
}

.footer-col {
    flex: 1 1 20%;
    min-width: 200px;
}

.footer-col:nth-child(4) {
    flex: 1 1 30%;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-col p {
    margin: 0;
    color: #cccccc;
    font-size: 1.3rem;
}

.footer-col a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-social a{
    color: #fff;
    transition: color 0.3s ease;
}

.footer-social a:hover{
    color: var(--fralibaColor);
}

.footer-logo{
    height: 80px;
    width: 110px;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: #181818;
    padding: 20px 15px;
    text-align: center;
}

.footer-bottom-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 1.05rem;
    color: #999999;
    margin: 0;
}

.footer-bottom a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
    padding: 12px 0px !important;
    transition: padding 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo img {
    height: 70px;
    transition: height 0.5s ease;
}

/* Menu desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #cccccc;
}

/* ========== NAVBAR SCROLL (diventa nera) ========== */
.main-header.scrolled {
    background-color: #202020;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.main-header.scrolled .navbar {
    padding: 10px 40px;
}

.main-header.scrolled .nav-logo img {
    height: 45px;
}

.prenota {
    position: relative;
    color: var(--fralibaColor) !important;
    text-decoration: none !important;
    display: inline-block;
}

.prenota::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0; /* partenza da destra */
    width: 100%;
    height: 1px;
    background-color: var(--fralibaColor);
    transform-origin: right; /* l’animazione parte da destra */
    transform: scaleX(1);
    transition: transform 0.4s ease;
    margin: 2px 0;
}

/* Hover → la linea si ritrae da destra verso sinistra */
.prenota:hover::after {
    transform: scaleX(0);
}

/* ========== BURGER MENU (mobile) ========== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animazione burger -> X */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(13px);
}
.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-13px);
}
/* Trasparente di default */
.main-header {
    background-color: transparent;
}

/* --- IMMAGINI ASSOLUTE --- */
.img-abs-1,
.img-abs-2 {
    position: absolute;
    top: 30%;
    width: 270px !important;
    height: 280px !important;
    object-fit: contain !important;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transform: translateY(-50%); /* torna neutro */
}

#polenteria .img-abs-1 {
    top: 0% !important;
}

#polenteria .img-abs-2 {
    top: 5% !important;
}

/* SINISTRA */
.img-abs-1 {
    left: -350px; /* metà fuori dallo schermo */
}

/* DESTRA */
.img-abs-2 {
  right: -350px; /* metà fuori dallo schermo */
}

#toTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border: none;
    background-color: var(--fralibaColor);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgb(0 0 0 / 10%)
}

/* Mostra il bottone quando attivo */
#toTop.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover effect */
#toTop:hover {
    background-color: var(--fralibaColorDark);
}

.image-wrapper-about img{
    height: auto;
    width: 100%;
}

@media (max-width: 991px) {
    .img-abs-1, .img-abs-2 {
        display: none;
    }
    .footer-top {
      padding: 40px 20px;
    }
    .pr-dk {
        padding: 12px 12px 50px !important;
    }
    .pl-dk {
        padding: 50px 12px 12px !important;
    }
    .text, .text-small{
        font-size: 18px !important;
    }
    .no-container {
        padding: 120px 12PX;
    }
    .reviews-swiper h4 {
        font-size: 1.2em;
    }
    .reviews-swiper {
        padding-bottom: 0px !important;
    }
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        grid-auto-rows: auto;
    }
    .item.wide {
        grid-column: span 1;
    }
    .form-wrapper {
        width: 100% !important;
    }
    .p-50 {
        padding: 50px 12px 12px !important;
    }
    .hero-bottom .right{
        display: none;
    }
    .hero-bottom {
        padding: 0 12px;
        justify-content: center !important;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 95%;
        right: 0;
        background-color: #202020;
        flex-direction: column;
        right: -5%;
        width: 110%;
        padding: 20px;
        gap: 20px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-menu li a {
        font-size: 1.4rem;
        text-transform: uppercase;
    }
    .item.big {
        grid-row: span 1;
        grid-column: span 1;
    }
    .menu-section img, .image-wrapper img, img.mb-50 {
        height: auto !important;
    }
    iframe{
        height: 300px !important;
    }
    .swiper-slide h1 br, .swiper-slide h2 br {
        display: none !important;
    }
}

.feedback-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 12px;
}
