/* WordPress-specific overrides for Air Sicilia theme */

/* Fix WP admin bar offset */
body.admin-bar #header.fixed-top {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar #header.fixed-top {
        top: 46px;
    }
}

/* WP block editor alignment */
.entry-content .alignwide {
    margin-left: -1rem;
    margin-right: -1rem;
    max-width: 100vw;
}
.entry-content .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}
.entry-content img {
    max-width: 100%;
    height: auto;
}

/* WP navigation classes */
.nav-links {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}
.nav-links a {
    color: #cc1616;
}

/* Page/post content spacing */
.page-content,
.entry-content {
    padding: 60px 0;
}

/* Shortcode styling inside theme */
.sicacars-shortcode {
    padding: 0;
}
.sicacars-shortcode section {
    padding: 0;
}


/* ============================================================== */
/* -- Responsive layer for embedded sicacars shortcodes --------- */
/* ============================================================== */

/* Plugin's own .sicacars-table inside theme pages: ensure overflow */
@media (max-width: 1024px) {
    .entry-content .sicacars-table-responsive,
    .entry-content .sicacars-table-wrap,
    .page-content .sicacars-table-responsive,
    .page-content .sicacars-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .entry-content table,
    .page-content table,
    .panel-body table {
        font-size: 13px;
    }
    .panel-body { padding: 12px !important; }
    .panel-heading h4 { font-size: 16px !important; }

    /* Plugin shortcodes embedded inside theme pages */
    .entry-content .sicacars-form-row,
    .page-content .sicacars-form-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .entry-content table th,
    .entry-content table td,
    .page-content table th,
    .page-content table td,
    .panel-body table th,
    .panel-body table td {
        font-size: 12px;
        padding: 6px 6px !important;
    }
    .hero-title { font-size: 1.6rem !important; }
    .section-title { font-size: 1.3rem !important; }
}

/* ============================================================== */
/* -- Responsive layer for embedded sicacars shortcodes --------- */
/* ============================================================== */

/* Plugin's own .sicacars-table inside theme pages: ensure overflow */
@media (max-width: 1024px) {
    .entry-content .sicacars-table-responsive,
    .entry-content .sicacars-table-wrap,
    .page-content .sicacars-table-responsive,
    .page-content .sicacars-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .entry-content table,
    .page-content table,
    .panel-body table {
        font-size: 13px;
    }
    .panel-body { padding: 12px !important; }
    .panel-heading h4 { font-size: 16px !important; }

    /* Plugin shortcodes embedded inside theme pages */
    .entry-content .sicacars-form-row,
    .page-content .sicacars-form-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .entry-content table th,
    .entry-content table td,
    .page-content table th,
    .page-content table td,
    .panel-body table th,
    .panel-body table td {
        font-size: 12px;
        padding: 6px 6px !important;
    }
    .hero-title { font-size: 1.6rem !important; }
    .section-title { font-size: 1.3rem !important; }
}