/*
 Theme Name:   Hello Elementor Child - Giusy
 Theme URI:    http://example.com/hello-elementor-child-giusy/
 Description:  Hello Elementor Child Theme for La Casa di Giusy
 Author:       Antigravity
 Author URI:   http://example.com
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child-giusy
*/

/* CSS Reset & Variables */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Offset globale per tutti gli ancoraggi (salva il layout su mobile) */
section[id],
div[id] {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 85px;
    }

    section[id],
    div[id] {
        scroll-margin-top: 85px;
    }
}

:root {
    --bg-color: #FAFAFA;
    --text-dark: #1F3F77;
    --text-gray: #1F3F77;
    --blue-primary: #1F3F77;
    --border-color: #D1D5DB;
    --shadow: 0px 10px 40px rgba(0, 0, 0, 0.05);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

.giusy-maiolica-border {
    width: 80px;
    background-color: white;
    background-image: url('maiolica_pattern.png');
    background-size: cover;
    background-position: center top;
    background-repeat: repeat-y;
    border-left: 2px solid var(--blue-primary);
    border-right: 2px solid var(--blue-primary);
    flex-shrink: 0;
    z-index: 50;
    position: fixed;
    top: 0;
    bottom: 0;
}

@media (max-width: 768px) {
    .giusy-maiolica-border {
        width: 15px;
        /* Fascia molto più stretta su smartphone */
        border-left: 1px solid var(--blue-primary);
        border-right: 1px solid var(--blue-primary);
        background-size: 15px auto;
        z-index: 9999;
        /* Per scavalcare eventuali menù */
        pointer-events: none;
        /* Impedisce che blocchino click sui bordi dello schermo */
    }
}

.giusy-maiolica-left {
    left: 0;
    border-left: none;
}

.giusy-maiolica-right {
    right: 0;
    border-right: none;
}



/* Header */
.header {
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-container {
    margin-bottom: 5px;
}

.logo {
    max-height: 100px;
    /* Massimizzato: il logo occupa ora la sua dimensione reale (100px), ma la barra manterrà i padding ridotti */
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .header {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .header .logo-container {
        margin-bottom: 0px;
    }

    .logo {
        max-height: 80px;
        /* Mobile spinto quasi a dimensione intera per massima leggibilità */
    }
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 400;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
}

.nav a:hover {
    text-decoration: underline;
}

.nav .sep {
    color: rgba(31, 63, 119, 0.6);
    font-size: 14px;
}

/* Hero Titles */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 150px !important;
    /* Increased for better breathing space */
    z-index: 10;
    position: relative;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Booking Area & Illustrations */
.booking-wrapper {
    position: relative;
    width: 100%;
    margin-top: 100px;
    /* Moved further down as requested */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

/* Illustrations positioning */
.illustrations {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.illus-left,
.illus-right {
    position: absolute;
    top: 0;
    z-index: 1;
}

.illus-left {
    left: 40px;
}

.illus-right {
    right: 40px;
}

.illus-left img {
    height: 350px;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.illus-right img {
    height: 350px;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 0.85;
}

/* The Booking Bar - Dynamic Integration */
.booking-bar {
    position: relative;
    z-index: 10;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.giusy-form-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.giusy-input-group.bar-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0 16px;
    height: 52px;
    background: white;
    width: 165px;
    /* Slightly reduced */
}

.giusy-input-group.bar-group.guests-group {
    width: 180px;
    /* Increased width to read better */
}

.giusy-input-group.bar-group input,
.giusy-input-group.bar-group select {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-gray);
    background: transparent;
    width: 100%;
    cursor: pointer;
}

.giusy-input-icon {
    width: 20px;
    /* Slightly adjusted size */
    height: 20px;
    color: var(--blue-primary);
    /* Use primary blue for icons */
    margin-right: 12px;
    flex-shrink: 0;
}

.btn-book-bar {
    background-color: var(--blue-primary);
    color: white;
    border: none;
    height: 52px;
    border-radius: 5px;
    padding: 0 24px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-book-bar:hover {
    background-color: #152C55;
    /* A darker blue for hover */
    color: white;
}

.icon-arrow {
    width: 16px;
    height: 16px;
}

/* Input groups */
.input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0 16px;
    height: 52px;
    background: white;
}

.input-group:nth-child(1),
.input-group:nth-child(2) {
    width: 180px;
}

.input-group:nth-child(3) {
    width: 130px;
}

.booking-input {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-gray);
    background: transparent;
    width: 100%;
}

.booking-input::placeholder {
    color: rgba(31, 63, 119, 0.5);
}

.icon {
    width: 18px;
    height: 18px;
    color: rgba(31, 63, 119, 0.6);
    flex-shrink: 0;
}

.chevron {
    width: 16px;
    height: 16px;
}

/* Button */
.btn-book {
    background-color: var(--blue-primary);
    color: white;
    border: none;
    height: 52px;
    border-radius: 5px;
    padding: 0 24px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-book:hover {
    background-color: #152C55;
}

.icon-arrow {
    width: 16px;
    height: 16px;
}

/* Second Section (Un rifugio autentico.) */
.rifugio {
    text-align: center;
    margin-top: 100px;
    max-width: 800px;
    z-index: 10;
    position: relative;
}

.rifugio-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.rifugio-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .illus-left,
    .illus-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .giusy-form-bar-row {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .giusy-input-group.bar-group {
        width: 100% !important;
    }

    .btn-book-bar {
        width: 100%;
    }

    .booking-bar {
        flex-direction: column;
        width: 90%;
        padding: 20px;
    }

    .input-group {
        width: 100% !important;
    }

    .btn-book {
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}