/* =====================
   BASE / RESET
===================== */



h1, h2, h3, h4, .font-display {
    font-family: "Playfair Display",serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Manrope",Arial,sans-serif;
    margin: 0;
    color: #1C1919;
    background: #FDFBF7;
    overflow-x: hidden;
    width: 100%;
}

.font-display {
    font-family: "Playfair Display",serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
}

/* =====================
   NAVBAR
===================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
background: rgba(253,251,247,0.90);
    transition: .3s;

background: rgba(253,251,247,.95);
    -webkit-backdrop-filter:blur(10px);

    transition:all .3s ease;


}

.navbar-container {
    max-width: 1200px;
    margin: auto;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo img{
    height: 90px;

}
.logo {
margin-top:5px;

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

    .logo{
        margin-left:-18px;
    }

}

@media (max-width:480px){

    .logo{
        margin-left:-18px;
    }

}
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-menu a {
    color: #1C1919;
    font-weight: 600;
    text-decoration: none;
    position: relative;
 font-size:14px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 28px;
    color: #7A1A1A;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
    background: #FDFBF7;
}

.mobile-menu a {
    color: #1C1919;
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.mobile-toggle.active {
    font-size: 26px;
}

@media (max-width:992px) {
    .desktop-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-menu.active {
        display: flex;
    }
}

/* =====================
   HERO
===================== */

.hero {
    height: 90vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image img,
.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: opacity .8s ease, transform 6s ease;
    transform: scale(1);
}

.hero-slide-img.active {
    opacity: 1;
    z-index: 1;
}

.hero-image img.zoom-in,
.hero-slide-img.zoom-in {
    animation: zoomImage 6s ease forwards;
}

@keyframes zoomImage {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.12);
    }
}

.hero-content.animate-out {
    animation: textOut .5s ease forwards;
}

.hero-content.animate-in {
    animation: textIn .8s ease forwards;
}

@keyframes textOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(40px);
    }
}

@keyframes textIn {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0,0,0,.45);
}

.hero-content {
    position: relative;
    z-index: 5;
    height: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    color: #FDFBF7;
}

.hero-content h1 {
    font-family: "Playfair Display",serif;
    font-size: clamp(45px,7vw,80px);
    line-height: 1.02;
    max-width: 900px;
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin-top: 25px;
}

#hero-badge {
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

#hero-title {
    font-size: clamp(40px,5vw,72px);
    line-height: 1.1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.menu-button {
    border: 2px solid #FDFBF7;
    padding: 15px 35px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 6;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: #ffffff80;
    cursor: pointer;
    padding: 0;
    transition: width .35s ease, border-radius .35s ease, background .3s ease;
}

.dot:hover {
    background: #ffffffcc;
}

.dot.active {
    width: 35px;
    border-radius: 10px;
    background: white;
}

.hero-scroll {
    position: absolute;
    bottom: 25px;
    right: 40px;
    color: white;
    font-size: 35px;
    z-index: 10;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    animation: bounce 2s infinite;
}

@media (max-width:600px) {
    .hero-dots {
        bottom: 70px;
    }

    .hero-scroll {
        left: 50%;
        right: auto;
        --arrow-tx: calc(-50% - 0px);
        bottom: 15px;
        font-size: 28px;
        display: inline-flex;
        justify-content: center;
        width: 40px;
    }

    .gallery-grid {
        columns: 4;
    }

    .section-title h2 {
        font-size: 38px;
    }

    .social-section {
        padding: 70px 20px;
    }

    .social-section h2 {
        font-size: 38px;
    }

    .social-box, .google-box {
        padding: 20px;
    }


    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons .menu-button {
        width: 100%;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }
}

@keyframes bounce {
    0%,100% {
        transform: translateX(var(--arrow-tx, 0px)) translateY(0);
    }

    50% {
        transform: translateX(var(--arrow-tx, 0px)) translateY(10px);
    }
}

.hero-image img.loaded {
    opacity: 1;
}

/* =====================
   ABOUT
===================== */

.about {
    padding: 120px 20px;
}

.about-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 720px;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.image-border {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(122,26,26,.2);
    border-radius: 20px;
}

.years-box {
    position: absolute;
    bottom: -25px;
    right: 25px;
    background: #7A1A1A;
    color: #FDFBF7;
    padding: 25px 30px;
    border-radius: 20px;
    z-index: 3;
}

.years-box strong {
    display: block;
    font-family: "Playfair Display";
    font-size: 45px;
}

.years-box span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-label {
    color: #7A1A1A;
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.about-content h2{
   font-family: "Playfair Display",serif;
    font-size:48px;
    line-height:1.2;
    font-weight:700;
    margin-bottom:20px;
}

.about-content p {
    line-height: 1.4;
    color: #555;
}

.features {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature {
    background: white;
    border: 1px solid rgba(122,26,26,.1);
    padding: 20px;
    border-radius: 15px;
}

.feature-icon {
    font-size: 28px;
    color: #7A1A1A;
}


.feature h3{
    font-size:18px;
    font-weight:700;
    margin-bottom:10px;
    color:#333;
}

.feature p{
    font-size:.874rem;
    line-height:1.375;
    color:#1c1919a6;
    margin-top:10px;
}
@media (max-width:900px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .about-content h2 {
        font-size: 38px;
    }

    .gallery-grid {
        columns: 2;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

.footer-container{

    max-width:1200px;
    margin:auto;

    display:grid;
    grid-template-columns:2fr 1fr 1fr;

    gap:50px;

    padding:60px 20px;

}


}
/* =====================
   GALLERY
===================== */

.gallery-section {
    padding: 120px 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.section-title {
    max-width: 800px;
    margin-bottom: 50px;
}

.section-title span {
    color: #7A1A1A;
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.section-title h2 {
    font-family: "Playfair Display",serif;
    font-size: 48px;
    margin-top: 15px;
font-weight: 700;
}

.section-title p {
    color: #666;
    margin-top: 20px;
}

.gallery-grid {
    columns:4;
    column-gap:20px;

}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(122,26,26,.1);
}

.gallery-item img {

    width:100%;
    height:auto;
    display:block;
    object-fit:cover;
    transition:.5s;

}

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

@media(max-width:992px){

    .gallery-grid{
        columns:3;
    }

}


@media(max-width:768px){

    .gallery-grid{
        columns:2;
    }

}


@media(max-width:480px){

    .gallery-grid{
        columns:1;
    }

}

/* =====================
   CONTACT
===================== */

.contact-section {
    padding: 120px 20px;
    background: #F4EFE7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 22px;
    border-radius: 15px;
    border: 1px solid rgba(122,26,26,.1);
    margin-bottom: 15px;
    text-decoration: none;
    color: #1C1919;
}

.contact-card .icon {
    font-size: 25px;
    color: #7A1A1A;
}

.contact-card p {
    margin-top: 8px;
    color: #666;
    font-size: 15px;
}

.hours {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.hours li {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 10px;
}

.hours li span {
    min-width: 120px;
}

.closed {
    color: #7A1A1A;
}

.full {
    width: 100%;
    margin-top: 10px;
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 20px;
}

/* =====================
   SOCIAL
===================== */

.social-section {
    padding: 90px 0;
    background: #f4efe7;
}

.social-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 25px;
    margin-top: 40px;
    align-items: start;
}

.social-box{
    background: #ffffff;
    color: #00000;
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
height:100%;
}
.google-box {
    background: #a31701;
    color: #ffffff;
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.social-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.social-header a {
    color: #7a1a1a;
    font-size: 22px;
}



.social-header-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;           /* occupa tutto lo spazio disponibile */
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
}

.social-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ig-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    /* il classico gradiente Instagram */
    background: radial-gradient(circle at 30% 107%,
        #fdf497 0%, #fdf497 5%, #fd5949 45%,
        #d6249f 60%, #285AEB 90%);
}

.fb-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    background: #1877F2;   /* blu ufficiale Facebook */
}

.social-header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.social-header-text strong {
    color: #1C1919;
    font-size: 10px;
}

.social-header-text small {
    color: #888;
    font-size: 13px;
}

.external-icon {
margin-left: auto;
    color: #7A1A1A;
    font-size: 16px;
flex-shrink:0;
}



.facebook-post {
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
  max-width:600px;   /* corrisponde al data-width, è solo un tetto massimo */
  margin:0 auto;
}

.facebook-post img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.facebook-post p {
    padding: 0 15px;
}


.facebook-post .fb-page,
.facebook-post iframe{
  width:100% !important;   /* l'iframe di FB ha uno style inline: serve !important */
  max-width:600px;
}

.post-date {
    font-size: 12px;
    color: #777;
    margin-top: 12px;
}

.social-button, .google-box>a {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid #7a1a1a;
    color: #7a1a1a;
    text-decoration: none;
}

.rating {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #E8B923;
    font-size: 18px;
}

.rating span {
    flex-shrink: 0;
    font-size: clamp(36px,7vw,55px);
    font-weight: bold;
    line-height: 1;
}

.rating > div {
    flex: 1;
    min-width: 0;
}

#google-rating{
    font-family:'Playfair Display', serif;
}

#google-stars {
    font-size: clamp(14px,3vw,16px);
    line-height: 1.2;
    word-break: break-word;
}

#google-reviews{
     font-size: 13px;
}




.rating p {
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.3;
}

.review {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.2);
}

.social-section h2 {
    font-family: "Playfair Display",serif;
    font-size: 50px;
    font-weight: 700;
    margin: 15px 0 0;
}

.facebook-post p:last-child {
    padding-bottom: 15px;
    line-height: 1.5;
    color: #555;
}

.google-box .review strong {
    color: white;
}

.google-box .review {
    border-color: rgba(255,255,255,.2);
}

.google-box a {
    background: #FDFBF7;
    color: #7A1A1A;
    border: 0;
     font-size: 13px;
}

/* =====================
   FOOTER
===================== */

.footer {
    background: #1C1919;
    color: #FDFBF7;
    padding-top: 70px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px 50px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    height: 150px;
    width: auto;
    border-radius: 8px;
}

.footer-brand p {
    margin-top: 25px;
    max-width: 380px;
    line-height: 1.7;
    color: rgba(253,251,247,.7);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 22px;
    transition: .3s;
}

.footer-social a:hover {
    background: #7A1A1A;
}

.footer h4 {
    font-family: "Playfair Display",serif;
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(253,251,247,.7);
    text-decoration: none;
}

.footer-menu a:hover {
    color: white;
}

.footer-contact p {
    color: rgba(253,251,247,.7);
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width:900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width:600px) {
    .footer {
        padding-top: 50px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 20px 40px;
        row-gap: 35px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-logo {
        height: 110px;
    }

    .footer-brand p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-menu ul {
        display: inline-block;
        text-align: left;
    }

    .footer-bottom {
        padding: 20px 15px;
        font-size: 12px;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 25px 20px;
    text-align: center;
    color: rgba(253,251,247,.5);
    font-size: 13px;
}

.desktop-menu a:hover {
    color: #7A1A1A;
}

.desktop-menu a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7A1A1A;
    transition: .3s;
}

.desktop-menu a:hover::after {
    width: 100%;
}

/* =====================
   TOAST
===================== */

.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    animation: toastIn .3s ease;
}

.toast.success {
    background: #2e7d32;
}

.toast.error {
    background: #b71c1c;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate(-50%,-20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%,0);
    }
}

/* =====================
   QR MODAL
===================== */

.qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.qr-modal.active {
    display: flex;
}

.qr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}

.qr-box {
    position: relative;
    background: white;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    z-index: 2;
    max-width: 350px;
}

.qr-box h3 {
    font-family: "Playfair Display";
    margin-bottom: 20px;
}

.qr-box img {
    width: 230px;
    height: auto;
}

#close-qr {
    position: absolute;
    right: 15px;
    top: 15px;
    border: 0;
    background: none;
    font-size: 25px;
    cursor: pointer;
}

@media (max-width:380px) {
    .hero-buttons .menu-button {
        font-size: 14px;
        padding: 13px 15px;
    }
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-photo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.google-box .review p {
    color: white;
    line-height: 1.5;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.google-box .stars {
    color: #E8B923;
    margin: 8px 0;
}

.google-box .review small {
    color: rgba(255,255,255,.7);
}

.instagram-feed {
    width: 100%;
    overflow: hidden;
}

.instagram-feed iframe {
    width: 100% !important;
}

@media (max-width:1100px) {
    .social-grid {
        grid-template-columns: 1fr 1fr;
    }

    .google-box {
        grid-column: span 2;
    }
}

@media (max-width:700px) {
    .social-section {
        padding: 60px 15px;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .google-box {
        grid-column: auto;
    }

    .social-box, .google-box {
        padding: 20px;
        border-radius: 15px;
    }
}

.social-header strong {
    color: #000000;
    font-size: 18px;
font-weight:700;
}

.social-header small {
    color: #000000;
}



/* =====================
   HERO SLIDER (aggiunte carosello)
===================== */

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
/* =====================
   SCROLL REVEAL
===================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-left.in-view {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-right.in-view {
    transform: translateX(0);
}

/* effetto "a cascata": ogni elemento del gruppo parte con un piccolo ritardo in più */
.features .reveal:nth-child(1),
.gallery-grid .reveal:nth-child(1),
.social-grid .reveal:nth-child(1),
.contact-info .reveal:nth-child(1),
.footer-container .reveal:nth-child(1) { transition-delay: 0s; }

.features .reveal:nth-child(2),
.gallery-grid .reveal:nth-child(2),
.social-grid .reveal:nth-child(2),
.contact-info .reveal:nth-child(2),
.footer-container .reveal:nth-child(2) { transition-delay: .15s; }

.features .reveal:nth-child(3),
.gallery-grid .reveal:nth-child(3),
.social-grid .reveal:nth-child(3),
.contact-info .reveal:nth-child(3),
.footer-container .reveal:nth-child(3) { transition-delay: .3s; }

.features .reveal:nth-child(4),
.gallery-grid .reveal:nth-child(4),
.contact-info .reveal:nth-child(4) { transition-delay: .45s; }

.gallery-grid .reveal:nth-child(5) { transition-delay: .6s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: .75s; }

/* chi preferisce meno movimento sullo schermo vede tutto subito, senza animazione */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


.my-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.my-link:hover {
    border-bottom: 1px solid currentColor;
}