/*
Theme Name: SPIN 2.0
Author: A S.R.L.®
Theme URI: https://osteriaspin.it
Description: Tema personalizzato per Osteria Spin
Version: 1.0.0
Text Domain: spin-2
*/

/* SPIN 2.0 — Logo originale */

.spin-header {
    text-align: center;
    padding: 35px 20px;
}

.spin-header img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
/* Intestazione SPIN 2.0 */

.spin-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 15px;
    padding: 20px 25px 15px;
}

.spin-brand {
    text-align: center;
}

.spin-menu-button {
    justify-self: start;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.spin-reservation {
    justify-self: end;
    background: #55c96b;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font: bold 13px Arial, sans-serif;
}

.spin-subtitle {
    margin-top: 10px;
44    font-size: 15px;
}
/* Fotografia homepage in formato 3:1 */

.spin-home-image {
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
}

.spin-home-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Correzione posizione pulsante RESERVATION */

.spin-header {
    box-sizing: border-box;
    width: 100%;
}

.spin-reservation {
    box-sizing: border-box;
    white-space: nowrap;
    margin-right: 85px;
}
/* Menu SPIN — tre linee eleganti */

.spin-menu-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.spin-menu-lines span {
    display: block;
    width: 34px;
    height: 2px;
    background-color: #111;
}

.spin-menu-lines span:nth-child(2) {
    width: 24px;
}
/* Abbassa leggermente il menu */

.spin-menu-button {
    margin-top: 20px;
}
/* Allineamento pulsante RESERVATION */

.spin-reservation {
    margin-top: 20px;
}
/* SPIN 2.0 — Menu offcanvas */

.spin-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 515px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    z-index: 10000;
    box-sizing: border-box;
    padding: 80px 35px 35px;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.12);
    transform: translateX(-110%);
    transition: transform 0.35s ease;
    visibility: hidden;
}

.spin-offcanvas.is-open {
    transform: translateX(0);
    visibility: visible;
}

.spin-offcanvas ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spin-offcanvas li {
    margin-bottom: 25px;
}

.spin-offcanvas a {
    color: #111111;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 17px;
    letter-spacing: 2px;
}

.spin-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
}

.spin-menu-overlay[hidden] {
    display: none;
}

.spin-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
}

/* SPIN 2.0 — Menu centrato */

.spin-offcanvas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spin-offcanvas ul {
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
}
/* Logo originale SPIN nel menu laterale */

.spin-offcanvas-logo {
    text-align: center;
    width: 100%;
    margin-bottom: 35px;
}

.spin-offcanvas-logo img {
    display: block;
    width: 140px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
/* Alza il logo nel menu laterale */

.spin-offcanvas-logo {
    transform: translateY(-40px);
}
/* Social SPIN — icone in riga */

.spin-offcanvas-social {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;
    margin-top: 15px;
}

.spin-offcanvas-social a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spin-offcanvas-social img {
    display: block;
    width: 17px;
    height: 17px;
    object-fit: contain;
}
/* Social nel footer SPIN 2.0 */

.spin-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

.spin-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spin-footer-social img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}
/* SPIN 2.0 — Footer centrato */

.spin-footer {
    text-align: center;
    padding: 30px 20px 45px;
    background: #ffffff;
}

.spin-footer-links {
    text-align: center;
    font-size: 13px;
}

.spin-footer-links a {
    color: #111111;
    text-decoration: none;
}

.spin-footer-address {
    text-align: center;
    font-size: 11px;
    margin-top: 30px;
}

.spin-footer-phone {
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
}

/* Telefono cliccabile solo su cellulare */

.spin-phone-mobile {
    display: none;
}

@media (max-width: 767px) {
    .spin-phone-desktop {
        display: none;
    }

    .spin-phone-mobile {
        display: inline;
        color: #111111;
        text-decoration: none;
    }
}
/* SPIN 2.0 — Dimensioni pagina Reservation */

.spin-page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

/* Riduzione visiva del modulo */
.spin-page-content {
    zoom: 0.85;
}
/* SPIN 2.0 — LA CANTINA: libro extra large */

.spin-page-content.spin-cantina-page {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px 15px 30px;
    box-sizing: border-box;
    zoom: 1;
}

.spin-cantina-page .df-container {
    width: 100% !important;
    max-width: none !important;
    height: 950px !important;
    min-height: 950px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
}

.spin-cantina-page .df-container .df-bg,
.spin-cantina-page .df-container .df-background {
    background: #ffffff !important;
}

@media (max-width: 767px) {
    .spin-cantina-page .df-container {
        height: 650px !important;
        min-height: 650px !important;
    }
}
/* SPIN 2.0 — CATCH OF THE DAY: menu PDF grande */

.spin-page-content.spin-menu-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 50px;
    box-sizing: border-box;
    zoom: 1;
}

/* SPIN 2.0 — Menu PDF centrato */
.spin-menu-page .spin-menu-pdf {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.spin-menu-page .spin-menu-pdf-pages {
    width: 100%;
    margin: 0 auto;
}

.spin-menu-page .spin-menu-pdf-pages canvas {
    width: 100% !important;
    height: auto !important;

}

.spin-menu-page .spin-menu-pdf iframe {
    display: block;
    width: 100%;
    height: 900px;
    border: none;
    background: #ffffff;
}

.spin-menu-page .spin-menu-pdf p {
    margin-top: 15px;
}

@media (max-width: 767px) {
    .spin-menu-page .spin-menu-pdf iframe {
        height: 75vh;
        min-height: 500px;

    }
}