/* TicinoBar – stile professionale definitivo */

/* VARIABILI COLORI */
:root {
    --primary: #f83d19;
    --secondary: #114a7a;
    --background: #f9ecce;
    --accent: #ef9d07;
    --dark: #10100a;
    --brown: #775509;
    --soft-brown: #7c725e;

    --radius: 12px;
    --transition: 0.25s ease;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--dark);
    line-height: 1.5;
}

/* NAVBAR */
.navbar {
    width: 100%;
    background: var(--secondary);
    padding: 15px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 55px;
    width: auto;
}

.menu-desktop ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.menu-desktop a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.menu-desktop a:hover,
.menu-desktop .active {
    color: var(--accent);
}

/* HERO CON LOGO FULLSCREEN */
.hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;

    /* LOGO come sfondo */
    background-image: url('/image/logo-1920x1080.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* OVERLAY SCURO */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* TESTO HERO */
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    color: #fff;
}

.hero-inner h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-inner p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn:hover {
    background: var(--accent);
}

.btn-secondary {
    background: var(--secondary);
}

.btn-secondary:hover {
    background: var(--brown);
}

/* PROMO BANNER */
.promo {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 60px 25px;
}

.promo h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.promo p {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

/* FOOTER */
.footer {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ----------------------------- */
/*   HAMBURGER + MENU MOBILE     */
/* ----------------------------- */

/* Hamburger hidden on desktop */
.hamburger {
    display: none;
}

/* Icon styling */
.hamburger {
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 200;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Hamburger becomes X */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu container */
.menu-mobile {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: var(--secondary);
    padding-top: 80px;
    transition: right 0.35s ease;
    z-index: 150;
}

.menu-mobile.open {
    right: 0;
}

.menu-mobile ul {
    list-style: none;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-mobile a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Overlay mentre il menu è aperto */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 120;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ----------------------------- */
/*         RESPONSIVE            */
/* ----------------------------- */

@media (max-width: 900px) {

    /* Nascondi menu desktop */
    .menu-desktop {
        display: none;
    }

    /* Mostra hamburger a destra */
    .hamburger {
        display: flex;
        position: absolute;
        right: 25px;
        top: 22px;
    }
}

@media (max-width: 600px) {
    .hero-inner h1 {
        font-size: 2rem;
    }

    .hero-inner p {
        font-size: 1rem;
    }
}
/* CONTENITORE PAGINA */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 20px 20px;
    text-align: center;
}

/* TITOLO PAGINA (coerente con Home) */
.page-title {
    font-size: 2.6rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--dark);
}

/* SEARCH BAR MODERNA */
.search-bar {
    width: 100%;
    max-width: 450px;
    padding: 14px 18px;
    border-radius: 10px;
    border: 2px solid var(--secondary);
    font-size: 1.1rem;
    background: white;
}

/* GRID DEI BAR */
.bar-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 40px 20px 20px 20px;
}

/* CARD PLACEHOLDER */
.bar-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

.bar-card:hover {
    transform: translateY(-6px);
}

.bar-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.bar-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.no-bars {
    text-align: center;
    font-size: 1.3rem;
    padding: 30px;
    color: var(--dark);
    display: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bar-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
/* PAGINA PREZZI */
.page-subtitle {
    font-size: 1.3rem;
    color: var(--dark);
    margin-top: -10px;
}

/* GRID PIANI */
.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    display: grid;
    gap: 35px;
    grid-template-columns: repeat(3, 1fr);
}

/* CARD PREZZI */
.pricing-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
}

/* Piano evidenziato */
.pricing-card.highlight {
    border: 3px solid var(--primary);
}

/* Titolo piano */
.pricing-card h2 {
    font-size: 1.9rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

/* Prezzo */
.pricing-card .price {
    font-size: 2.2rem;
    margin: 12px 0 18px 0;
    font-weight: bold;
}

.pricing-card .price span {
    font-size: 1.2rem;
    color: var(--dark);
}

/* Lista feature */
.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.pricing-card .features li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* OFFERTA PERSONALIZZATA */
.custom-offer {
    text-align: center;
    padding: 60px 20px 80px;
    background: var(--primary);
    color: white;
}

.custom-offer h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.custom-offer p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
