* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background-color: #FFFEEF;/*sfondo bianco antico*/
    color: #003153; /*colore del testo blu di Prussia*/
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

img {
    max-width: 100%;
    display: block;
}

/*HEADER E NAVIGAZIONE*/
header {
    background-color: #FFFEEF; 
    color: #003153;
    padding:10px 20px;
    width:100%;
    height:110px;
    position:relative;
    z-index:10000;
    display:flex;
    align-items:center;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-desktop ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.left-nav {
    justify-content: flex-end;
    display:flex;
}

.right-nav {
    justify-content: flex-start;
    display:flex;
}

.nav-desktop a {
    text-decoration: none;
    color: #333;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    transition: color 0.3s;
    padding: 10px 15px;
}

.nav-desktop a:hover {
    color: #0000CD;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

.logo img {
    height: 70px;
    display: block;
}

/*ANIMAZIONI REVEAL*/
.reveal {
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) !important;
}

/*HERO*/
.hero, .heroMenu{
    background-size: cover;
    background-position: center;
    height: 80vh;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Sfondo1.webp');
    margin-bottom: 100px;
}

.heroMenu {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('HeroMenu1.webp');
}

.hero-content, .heroMenu-content {
    max-width: 600px;
    padding: 0 20px;
}

.heroMenuText{
    position:absolute;
    bottom:20px;
    left:20px;
}

.hero h1{
    font-size: 5rem;
}

.hero p{ 
    font-size: 1.2rem;
}

/*PULSANTI*/
.btn-prenota, .btn-recensione, .btn-menu {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 10px;
    border: 2px solid #3974af;
    background-color:#FFFEEF ;
    color:#02192b;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight:800;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-prenota:hover, .btn-recensione:hover, .btn-menu:hover {
    background-color:#3974af;
}

.btn-recensione-wrapper{
    display:flex; 
    justify-content: center;
}

/*HOME*/
.home-container {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.home-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-column.reveal:nth-child(1) {
    transform: translateX(-60px);
}

.home-column.reveal:nth-child(2) {
    transform: translateY(60px);
    transition-delay: 0.4s;
}

.home-column.reveal:nth-child(3) {
    transform: translateX(60px);
    transition-delay: 0.2s;
}

.home-column img{
    width: 80%;
    height: 600px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.home-column:first-child {
    align-items: flex-start;
}

.home-column:last-child {
    align-items: flex-end;
}

.home-column:nth-child(2) {
    align-items: center;
    text-align: center;
}

.home-title-line{
    display:flex;
    align-items:baseline;
    justify-content: center;
    width: 100%;
    margin-bottom:20px;
    margin-top:30px;
}

.home-title-line h2 {
    margin: 0 5px;
    white-space: nowrap;
    text-align:center;
}

.home-title-line .line {
    flex: 1;
    border-bottom: 2px solid #a8c1d3;
    height: 1px;
}

/*FASCIA HOME*/
.fascia-colorata {
    width: 100%;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    background-color:#003153 ;
    color:#FFFEEF ;
    align-items: center;
    gap:30px;
    padding:60px 20px;
}

.fascia-column {
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align:center;
}

.fascia-column.reveal:nth-child(1) {
    transform: translateX(-100px);
    transition-delay: 0.8s;
}

.fascia-column.reveal:nth-child(2) {
    transform: translateX(-100px);
    transition-delay: 0.4s;
}

.fascia-column.reveal:nth-child(3) {
    transform: translateX(-100px); 
}

.icon-circle-fascia {
  width: 90px;
  height: 90px;
  background-color: #02192b;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom:30px;
}

.icon-circle-fascia svg {
  width: 35px;
  height: auto;
  fill: white;
  overflow: visible;
}

/*RECENSIONI*/
.recensione{
    text-align:center; 
    margin-top:50px 0;
}

.recensione h2{
    margin-bottom:20px;
    font-size: 1.8rem;
}

.recensione-container {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #FFFEEF;
    color: #003153;
}

.recensione-column {
    flex: 1;
    margin-bottom: 20px;
    padding: 0 15px;
    width:100%;
}

.recensione-column:nth-child(1), .recensione-column:nth-child(2){
    border-right: 2px solid #f0f0f0;
}

/*RISTORANTE*/
.ristorante-container {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.ristorante-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.ristorante-column img{
    width: 80%;
    height: 600px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.ristorante-title-line{
    display:flex;
    align-items:baseline;
    justify-content: center;
    width: 100%;
    margin-bottom:20px;
    margin-top:30px;
}

.ristorante-title-line h1 {
    margin: 0 5px;
    white-space: nowrap;
    text-align:center;
}

.ristorante-title-line .line {
    flex: 1;
    border-bottom: 2px solid #a8c1d3;
    height: 1px;
}

.ristorante-column:nth-child(2) {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fascia {
    width: 100%;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    background-color:#FFFEEF ;
    color:#003153 ;
    align-items: center;
    gap:30px;
    padding:60px 20px;
}

.locale-griglia {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.locale-foto {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 200px;
  cursor: pointer;
}

.lightbox {
    border: none;
    background: transparent;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    overflow: visible;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px); /* Opzionale: sfoca leggermente lo sfondo */
}

.lightbox-content {
    position: relative;
    display: inline-block;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #003153;
}

.locale-foto.foto-grande {
  grid-row: span 2;
  height: 415px;
}

.locale-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.locale-foto img:hover {
  transform: scale(1.03);
}

.filosofia {
    background-color: #003153;
    width: 100%;
}

.filosofia-row {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 40px 40px;
    min-height: 350px;
}

.filosofia-row.reveal:not(.reverse) {
    transform: translateX(-100px);
}

.filosofia-row.reveal.reverse {
    transform: translateX(100px);
}

.filosofia-text {
    flex: 0 0 55%;
}

.filosofia-row.reverse {
    flex-direction: row-reverse;
}

.filosofia-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.filosofia-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: white;
    font-weight: 400;
}

.numero-filosofia {
    flex: 0 0 35%;
    font-family: 'Cormorant Garamond', serif;
    font-size: 160px;
    font-weight: 700;
    font-style: italic;
    color: white;
    text-align: center;
    user-select: none;
    line-height: 1;
    opacity:0.6;
}

.ristorante-momenti {
    padding: 100px 0;
    width: 100%;
    margin: 0 auto;
    position: relative;
    background-color: #FFFEEF;
    color:#003153;
}

.momenti-titolo-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

.momenti-titolo-line h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #003153;
    text-align: center;
}

.momenti-titolo-line .line {
    flex: 1;
    height: 1px;
    background-color: #003153;
    max-width: 100px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.momento-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.momento-punto {
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
    margin: 0 auto 25px auto;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e0e0e0;
}

.momento-ora {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    font-style: italic;
    color: #003153;
    margin-bottom: 10px;
    line-height: 1;
    opacity: 0.85;
}

.momento-item h3 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #003153;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.momento-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #003153;
    padding: 0 10px;
}

.call-ristorante {
    padding: 120px 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: #FFFEEF;
    color: #003153;
}

.call-block-ristorante{
    max-width: 650px; 
    width: 100%;
}

.call-ristorante h1{
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.call-ristorante p{
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/*MENU*/
.menu {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 10px;
    padding: 0 20px;
}

.menu h2 {
  font-size: 42px;
  color: #003153;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu p {
  font-size: 1.1rem;
  color: #003153;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.card-pesce{
    background-image: url('MenuPesce.webp');
}

.card-carne{
    background-image: url('MenuCarne.webp');
}

.card-pizza{
    background-image: url('MenuPizza.webp');
}

.menu-card:hover {
    transform: scale(1.03);
}

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    margin-bottom: 100px;
    padding: 0 20px;
}

.menu-card {
    flex: 1;
    min-width: 280px;
    height: 350px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.menu-card:hover .menu-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.menu-overlay h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.menu-row{
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 40px 40px;
    min-height: 450px;
}

.menu-row.reveal:not(.reverse) {
    transform: translateX(-100px);
}

.menu-row.reveal.reverse {
    transform: translateX(100px);
}

.menu-text{
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.menu-row.reverse {
    flex-direction: row-reverse;
}

.title-line{
    display:flex;
    align-items:baseline;
    justify-content: center;
    width:100%;
    margin-bottom:20px;
}

.title-line h2 {
    margin: 0 5px;
    text-align: center;
    white-space: nowrap;
}

.title-line .line {
    flex: 1;
    border-bottom: 2px solid #003153;
    height: 1px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.menu-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-name {
    font-size: 16px;
    color: #003153;
}

.menu-description {
    font-size: 12px;
    color: #003153;
}

.menu-price {
    color: #003153;
    padding-left: 20px;
}

.menu-title {
    text-align: center;
    margin-top: 50px;
}

.allergeni {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.allergeni h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.allergeni-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 15px;
}

.allergeni-list li {
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
}

.allergeni-list li span {
    font-weight: bold;
    margin-right: 5px;
}

/*CONTATTI*/
.h1-contatti{
    background-color:#003153; 
    color:#FFFEEF; 
    text-align:center; 
    padding:40px;
}

.posizione{
    display: flex; 
    justify-content: center;
    margin:50px;  
}

.position-foto{
    width:600;
    height:450;
    border-radius: 15px;
}

.position-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #FFFEEF;
    color: #003153;
}

.position-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
    display: flex; 
    flex-direction:column;
    align-items: center;
    text-align: center;
}

.position-column:nth-child(1), .position-column:nth-child(2){
    border-right: 2px solid #f0f0f0;
}

.icon-circle {
  width: 50px;
  height: 50px;
  background-color: #003153;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom:20px;
}

.icon-circle svg {
  width: 22px;
  height: auto;
  fill: white;
  overflow: visible;
}

/*FOOTER*/
.site-footer {
    background-color: #003153;
    color: white;
    padding: 40px 20px;
    margin-top:50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 15px;
    justify-content: center;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

.footer-column p {
    margin-bottom: 5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #1E90FF;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.15); 
    padding: 30px 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-legal p {
    margin-bottom: 8px;
}

.footer-legal .legal-info strong {
    color: #ffffff;
}

.footer-legal .legal-links {
    margin: 15px 0;
}

.footer-legal .legal-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    margin: 0 8px;
    transition: opacity 0.2s ease;
}

.footer-legal .legal-links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.footer-legal .footer-copyright {
    font-size: 0.8rem;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.5);
}

/*HAMBURGER INTERFACCIA MOBILE*/
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10002;
    width: 45px;
    height: 45px;
    position: relative;
}

.hamburger span {
    display:block;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    transform-origin:center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #FFFEEF;
    z-index: 10001;
    border-top: 1px solid #FFFEEF;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease-in-out;
}

.nav-mobile.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-mobile ul {
    list-style: none;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-mobile li {
    text-align: center;
    width:100%;
}

.nav-mobile a {
    display:block;
    padding: 18px 20px;
    text-decoration: none;
    color: #333;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 1px solid #f9f9f9;
}

/*RESPONSIVE LOGIC (Sotto i 1024px)*/
@media (max-width: 1024px) {
    .container {
        display: flex;
        justify-content: space-between;
    }

    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .home-container, 
    .fascia-colorata, 
    .fascia,
    .recensione-container,
    .ristorante-container,
    .ristorante-momenti,
    .timeline-container,
    .menu-row,
    .position-container, 
    .footer-container {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .timeline-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
    gap: 40px;
    }

    .filosofia-row {
        flex-direction: column-reverse !important;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .filosofia {
        padding-bottom: 60px;
    }

    .ristorante-column:nth-child(2) {
    height: auto !important;
    }

    .ristorante-title-line {
        flex-direction: column;
        gap: 10px;
    }

    .ristorante-title-line h1 {
        white-space: normal !important;
        font-size: 2rem;
        text-align: center;
    }

    .home-column, 
    .fascia-column, 
    .recensione-column,
    .ristorante-column,
    .momento-item, 
    .menu-text, 
    .menu-image,
    .position-column, 
    .footer-column {
        width: 100% !important;
        max-width: 100%;
        padding: 0 10px;
        align-items: center !important;
    }

    .home-column img {
        height: 380px;
    }

    .reveal {
        transform: translateY(30px) !important;
    }

    .recensione-column:nth-child(1), 
    .recensione-column:nth-child(2),
    .position-column:nth-child(1), 
    .position-column:nth-child(2) {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 30px;
    }

    .hero h1 {
        font-size:2.5rem;
    }

    .heroMenuText{
        font-size: 1.8rem;
        bottom: 15px;
        left: 15px;
        max-width: 90%;
    }

    .menu-row:last-of-type {
        margin-bottom: 0;
    }

    .title-line h2{
        margin-top:40px;
    }

    .locale-griglia {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .locale-foto.foto-grande {
        grid-row: auto;
        height: 250px;
    }

    .locale-foto {
        height: 250px;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-legal .legal-info p {
        display: inline-block;
        margin: 0 15px;
    }
}