/* =====================================================================
   Locanda Pezzolla - Stylesheet sito pubblico
   ===================================================================== */

:root {
    /* Palette dal logo Locanda Pezzolla */
    --lp-terracotta:       #B8412C;
    --lp-terracotta-dark:  #973320;
    --lp-terracotta-light: #d8624a;
    --lp-teal:             #1A6B5C;
    --lp-teal-dark:        #12544a;
    --lp-teal-light:       #2e8275;

    /* Neutri caldi */
    --lp-ivory:            #faf8f5;
    --lp-cream:            #f5f1ea;
    --lp-sand:             #ebe5db;
    --lp-stone:            #d4ccbf;

    /* Testi */
    --lp-text:             #2b2a28;
    --lp-text-muted:       #6b6a66;
    --lp-text-light:       #9b9a96;

    /* UI */
    --lp-border:           #e8e3da;
    --lp-bg:               #ffffff;
    --lp-bg-alt:           #faf8f5;

    /* Layout */
    --lp-header-h:         84px;
    --lp-radius:           4px;
    --lp-radius-lg:        12px;

    /* Tipografia */
    --lp-font:             'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== RESET LIGHT ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--lp-font);
    color: var(--lp-text);
    background: var(--lp-bg);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--lp-terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--lp-terracotta-dark); }

p { margin: 0 0 1rem 0; }
ul { padding-left: 1.25rem; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--lp-text);
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem 0;
}
h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

/* ===== Container proprietario (alternativa a Bootstrap container-xl) ===== */
.container-xl {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (max-width: 575px) {
    .container-xl { padding-left: 1rem; padding-right: 1rem; }
}

/* ===== Grid proprietario (alternativa a Bootstrap row/col) ===== */
.lp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.lp-col {
    flex: 1 1 0;
    min-width: 280px;
}
.lp-col-half {
    flex: 1 1 calc(50% - 1rem);
    min-width: 280px;
}
.lp-col-third {
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 240px;
}
.lp-col-quarter {
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 200px;
}

/* Flex utility */
.lp-d-flex { display: flex !important; }
.lp-justify-between { justify-content: space-between !important; }
.lp-align-center { align-items: center !important; }
.lp-flex-wrap { flex-wrap: wrap !important; }
.lp-text-center { text-align: center; }
.lp-mt-3 { margin-top: 1rem; }
.lp-mt-4 { margin-top: 1.5rem; }
.lp-mt-5 { margin-top: 3rem; }
.lp-mb-0 { margin-bottom: 0 !important; }

/* ===== HEADER ===== */
.lp-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lp-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.lp-header.lp-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.lp-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--lp-header-h);
    gap: 1.5rem;
}

.lp-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.lp-logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

/* Nav desktop */
.lp-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.lp-nav-link {
    color: var(--lp-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s;
}
.lp-nav-link:hover {
    color: var(--lp-terracotta);
}
.lp-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--lp-terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.lp-nav-link:hover::after,
.lp-nav-link.lp-active::after {
    transform: scaleX(1);
}

/* Azioni a destra */
.lp-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.lp-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}
.lp-lang-btn {
    color: var(--lp-text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
    border-radius: var(--lp-radius);
    transition: all 0.2s;
}
.lp-lang-btn:hover { color: var(--lp-terracotta); }
.lp-lang-btn.lp-active { color: var(--lp-terracotta); font-weight: 700; }
.lp-lang-sep { color: var(--lp-text-light); }

/* CTA Prenota */
.lp-cta {
    display: inline-flex;
    align-items: center;
    background: var(--lp-terracotta);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: var(--lp-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
.lp-cta:hover {
    background: var(--lp-terracotta-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 65, 44, 0.25);
}

/* Hamburger mobile */
.lp-hamburger {
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.lp-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--lp-text);
    border-radius: 2px;
    transition: all 0.25s;
}
.lp-hamburger.lp-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.lp-hamburger.lp-open span:nth-child(2) { opacity: 0; }
.lp-hamburger.lp-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Drawer mobile */
.lp-mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    border-top: 1px solid var(--lp-border);
}
.lp-mobile-menu.lp-open {
    max-height: 600px;
}
.lp-mobile-menu-inner {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lp-mobile-link {
    color: var(--lp-text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lp-sand);
}
.lp-mobile-link:hover { color: var(--lp-terracotta); }

/* ===== MAIN ===== */
.lp-main {
    min-height: calc(100vh - var(--lp-header-h) - 300px);
}

/* ===== SEZIONI ===== */
.lp-section {
    padding: 5rem 0;
}
.lp-section-alt {
    background: var(--lp-bg-alt);
}
.lp-section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.lp-section-title h2 {
    margin-bottom: 0.75rem;
}
.lp-section-title p {
    color: var(--lp-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* Etichetta sopra titolo */
.lp-eyebrow {
    display: inline-block;
    color: var(--lp-terracotta);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ===== BOTTONI ===== */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--lp-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 0;
    cursor: pointer;
}
.lp-btn-primary {
    background: var(--lp-terracotta);
    color: white;
}
.lp-btn-primary:hover {
    background: var(--lp-terracotta-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 65, 44, 0.25);
}
.lp-btn-secondary {
    background: var(--lp-teal);
    color: white;
}
.lp-btn-secondary:hover {
    background: var(--lp-teal-dark);
    color: white;
}
.lp-btn-outline {
    background: transparent;
    color: var(--lp-text);
    border: 1px solid var(--lp-stone);
}
.lp-btn-outline:hover {
    border-color: var(--lp-terracotta);
    color: var(--lp-terracotta);
}

/* ===== FORM ===== */
.lp-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    font-family: var(--lp-font);
    font-size: 0.95rem;
    color: var(--lp-text);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-form-control:focus {
    outline: 0;
    border-color: var(--lp-terracotta);
    box-shadow: 0 0 0 3px rgba(184, 65, 44, 0.1);
}
.lp-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--lp-text-muted);
    margin-bottom: 0.4rem;
}

/* ===== FOOTER ===== */
.lp-footer {
    background: #1a1a1a;
    color: #cfccc6;
    padding: 4rem 0 1.5rem 0;
    margin-top: 5rem;
}
.lp-footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(1.1);
}
.lp-footer-text {
    color: #9b9a96;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0;
}
.lp-footer-title {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.lp-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lp-footer-list li {
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
    color: #9b9a96;
}
.lp-footer-list li a {
    color: #cfccc6;
    text-decoration: none;
    transition: color 0.2s;
}
.lp-footer-list li a:hover {
    color: var(--lp-terracotta-light);
}
.lp-footer-list li i {
    color: var(--lp-terracotta-light);
    width: 18px;
    margin-right: 0.5rem;
}
.lp-footer-hr {
    border: 0;
    border-top: 1px solid #2c2c2c;
    margin: 3rem 0 1.5rem 0;
}
.lp-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: #6b6a66;
}
.lp-footer-credits {
    color: #6b6a66;
}

/* ===== RESPONSIVE ===== */
/* Visibilità nav: desktop >= 992px mostra menu, < 992px mostra hamburger.
   Indipendente da Bootstrap (così funziona anche se BS fallisce a caricare). */
.lp-show-desktop { display: flex !important; }
.lp-show-mobile { display: none !important; }
@media (max-width: 991px) {
    .lp-show-desktop { display: none !important; }
    .lp-show-mobile { display: flex !important; }
}

@media (max-width: 991px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    h3 { font-size: 1.3rem; }
    .lp-section { padding: 3.5rem 0; }
    .lp-footer { margin-top: 3rem; padding: 3rem 0 1.5rem 0; }
}
@media (max-width: 575px) {
    .lp-header-row { gap: 0.5rem; }
    .lp-logo img { height: 44px; }
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
}

/* ===== UTILITY ===== */
.lp-mt-section { margin-top: 5rem; }
.lp-mb-section { margin-bottom: 5rem; }
.text-terracotta { color: var(--lp-terracotta) !important; }
.text-teal { color: var(--lp-teal) !important; }
.bg-cream { background-color: var(--lp-cream) !important; }
.bg-ivory { background-color: var(--lp-ivory) !important; }
