/* ============================================================
   CUSTOM CSS — IseoLakeAirfield Theme
   Additional styles, overrides and page-specific rules
   ============================================================ */

/* Scrolled header */
#site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   PAGE-SPECIFIC: DOVE SIAMO
   ============================================================ */
.page-template-page-dove-siamo .entry-content p {
    font-size: 1rem;
    line-height: 1.85;
    max-width: 800px;
}

/* ============================================================
   PAGE-SPECIFIC: CHI SIAMO
   ============================================================ */
.page-template-page-chi-siamo .team-photo {
    max-width: 800px;
    margin: 0 auto 40px;
}

/* ============================================================
   PAGE-SPECIFIC: REGISTRO DI VOLO
   ============================================================ */
.page-template-page-registro .entry-content h2 {
    font-size: 1.4rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 40px;
}

/* ============================================================
   PAGE-SPECIFIC: FÜR DEUTSCHE PILOTEN
   ============================================================ */
.page-template-page-deutsche .entry-content {
    border-left: 4px solid #0080FF;
    padding-left: 24px;
}

/* ============================================================
   PAGE-SPECIFIC: CONTATTI
   ============================================================ */
.page-template-page-contatti .site-content {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Form message styling */
.form-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 12px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ============================================================
   GUTENBERG BLOCK OVERRIDES
   ============================================================ */
.entry-content .wp-block-image {
    margin: 2em 0;
}

.entry-content .wp-block-image img {
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.entry-content .wp-block-embed {
    margin: 2em 0;
}

.entry-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.entry-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.entry-content .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin: 2em 0;
}

.entry-content .wp-block-column {
    min-width: 0;
}

.entry-content .alignwide {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    max-width: 100vw;
}

.entry-content .alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 12px;
}

.entry-content .alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 12px;
}

.entry-content .aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Clearfix for floats */
.entry-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ============================================================
   ACCESSIBILTY
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #0080FF;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-weight: 700;
    border-radius: 0 0 6px 0;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0080FF;
    outline-offset: 2px;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    #site-header,
    #site-footer,
    .menu-toggle,
    #scroll-top {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .page-hero {
        background: #eee !important;
        height: auto;
        padding: 20pt 0;
    }

    .page-hero::after {
        display: none;
    }

    .page-hero-title {
        color: #000;
    }
}
