/* ============================================================
   Sicily Tours Pro — stp-pages.css (v1.2.5)
   Rediseño de páginas de contenido: regiones, tarifas, FAQ,
   galería y blog. Comparte el sistema de diseño del rediseño
   de tours (Montserrat/Lora/Dancing Script, dorado #c9a96e,
   teal #3e6a72). Todo el CSS está SCOPEADO a .stp-page para no
   afectar al resto del sitio.
   ============================================================ */

.stp-page {
        --stp-dark: #1a1a1a;
        --stp-text: #5a5a5a;
        --stp-muted: #999;
        --stp-border: #e8e8e8;
        --stp-bg-light: #f7f5f0;
        --stp-bg-warm: #f0ebe3;
        --stp-accent: #c9a96e;
        --stp-teal: #3e6a72;
        --stp-max: 1300px;
        font-family: 'Montserrat', sans-serif;
        color: var(--stp-dark);
        line-height: 1.7;
}
.stp-page * { box-sizing: border-box; }
.stp-page .stp-container {
        max-width: var(--stp-max);
        margin: 0 auto;
        padding: 0 40px;
}

/* ========================= HERO ========================= */
.stp-page .stp-page-hero {
        position: relative;
        min-height: 52vh;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: flex-end;
}
.stp-page .stp-hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.62) 100%);
}
.stp-page .stp-hero-content-wrapper {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: var(--stp-max);
        margin: 0 auto;
        padding: 0 40px 70px;
        color: #fff;
        text-align: center;
}
.stp-page .stp-hero-content-wrapper { margin-left: auto; margin-right: auto; }
.stp-page .stp-hero-label {
        display: inline-block;
        font-size: 11px;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--stp-accent);
        margin-bottom: 14px;
}
.stp-page .stp-hero-content-wrapper h1 {
        font-size: clamp(28px, 5vw, 50px);
        font-weight: 500;
        letter-spacing: 8px;
        text-transform: uppercase;
        line-height: 1.25;
        margin: 0 0 14px;
        text-shadow: 0 2px 30px rgba(0,0,0,0.35);
        color: #fff;
}
.stp-page .stp-hero-subtitle {
        font-family: 'Lora', serif;
        font-style: italic;
        font-size: 18px;
        color: rgba(255,255,255,0.9);
        max-width: 760px;
        margin: 0 auto;
}

/* ===================== CONTENT BLOCK ===================== */
.stp-page .stp-content-section { padding: 80px 0; }
.stp-page .stp-content-section.alt { background: var(--stp-bg-light); }
.stp-page .stp-content-wrapper {
        max-width: 920px;
        margin: 0 auto;
        font-size: 16px;
        color: var(--stp-text);
}
.stp-page .stp-content-wrapper h2 {
        font-family: 'Lora', serif;
        font-size: 28px;
        color: var(--stp-dark);
        margin: 38px 0 16px;
        line-height: 1.3;
}
.stp-page .stp-content-wrapper h3 {
        font-size: 20px;
        color: var(--stp-teal);
        margin: 28px 0 12px;
}
.stp-page .stp-content-wrapper h4 { font-size: 17px; margin: 22px 0 10px; color: var(--stp-dark); }
.stp-page .stp-content-wrapper p { margin: 0 0 18px; }
.stp-page .stp-content-wrapper a { color: var(--stp-teal); text-decoration: underline; }
.stp-page .stp-content-wrapper a:hover { color: var(--stp-accent); }
.stp-page .stp-content-wrapper img { border-radius: 8px; margin: 16px 0; height: auto; }
.stp-page .stp-content-wrapper ul,
.stp-page .stp-content-wrapper ol { margin: 0 0 18px; padding-left: 22px; }
.stp-page .stp-content-wrapper li { margin-bottom: 8px; }
.stp-page .stp-content-wrapper blockquote {
        border-left: 4px solid var(--stp-accent);
        background: var(--stp-bg-light);
        margin: 22px 0;
        padding: 16px 24px;
        font-family: 'Lora', serif;
        font-style: italic;
}
.stp-page .stp-content-wrapper table {
        width: 100%;
        border-collapse: collapse;
        margin: 22px 0;
}
.stp-page .stp-content-wrapper th,
.stp-page .stp-content-wrapper td {
        border: 1px solid var(--stp-border);
        padding: 12px 14px;
        text-align: left;
}
.stp-page .stp-content-wrapper th { background: var(--stp-bg-warm); }

/* ================== SECTION TITLE (shared) ================== */
.stp-page .stp-section-label {
        display: block;
        text-align: center;
        font-size: 11px;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--stp-accent);
        margin-bottom: 10px;
}
.stp-page .stp-section-title {
        text-align: center;
        font-family: 'Lora', serif;
        font-size: clamp(26px, 3.5vw, 38px);
        font-weight: 600;
        color: var(--stp-dark);
        margin: 0 0 50px;
}

/* ===================== TOURS GRID ===================== */
.stp-page .stp-tours-section { padding: 80px 0; background: var(--stp-bg-light); }
.stp-page .stp-tours-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 34px;
}
.stp-page .stp-tour-card {
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0,0,0,0.07);
        display: flex;
        flex-direction: column;
        transition: transform .4s ease, box-shadow .4s ease;
}
.stp-page .stp-tour-card:hover { transform: translateY(-8px); box-shadow: 0 18px 44px rgba(0,0,0,0.13); }
.stp-page .stp-tour-image { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.stp-page .stp-tour-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.stp-page .stp-tour-card:hover .stp-tour-image img { transform: scale(1.08); }
.stp-page .stp-tour-content { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.stp-page .stp-tour-meta { display: flex; gap: 16px; font-size: 12px; color: var(--stp-muted); margin-bottom: 10px; }
.stp-page .stp-tour-title { font-family: 'Lora', serif; font-size: 21px; margin: 0 0 10px; line-height: 1.3; }
.stp-page .stp-tour-title a { color: var(--stp-dark); text-decoration: none; }
.stp-page .stp-tour-title a:hover { color: var(--stp-accent); }
.stp-page .stp-tour-excerpt { font-size: 14px; color: var(--stp-text); margin: 0 0 18px; flex: 1; }
.stp-page .stp-tour-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.stp-page .stp-tour-price { font-size: 20px; font-weight: 700; color: var(--stp-teal); }
.stp-page .stp-tour-price--quote { font-size: 14px; font-weight: 600; }
.stp-page .stp-btn-tour {
        font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
        color: var(--stp-accent); text-decoration: none; transition: gap .3s;
}
.stp-page .stp-btn-tour:hover { color: var(--stp-dark); }
.stp-page .stp-no-tours { text-align: center; color: var(--stp-muted); padding: 40px 0; }

/* ===================== CTA ===================== */
.stp-page .stp-cta-section {
        padding: 90px 0;
        background: var(--stp-teal);
        text-align: center;
        color: #fff;
}
.stp-page .stp-cta-section h2 {
        font-family: 'Lora', serif;
        font-size: clamp(26px, 3.5vw, 38px);
        margin: 0 0 14px;
        color: #fff;
}
.stp-page .stp-cta-section p { font-size: 17px; color: rgba(255,255,255,0.85); margin: 0 0 30px; }
.stp-page .stp-btn-primary {
        display: inline-block;
        background: var(--stp-accent);
        color: #1a1a1a;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-decoration: none;
        padding: 17px 44px;
        border-radius: 2px;
        transition: background .3s, transform .3s;
}
.stp-page .stp-btn-primary:hover { background: #fff; transform: translateY(-3px); }

/* ===================== FAQ ACCORDION ===================== */
.stp-page .stp-faq-section { padding: 80px 0; }
.stp-page .stp-faq-list { max-width: 860px; margin: 0 auto; }
.stp-page .stp-faq-item {
        border: 1px solid var(--stp-border);
        border-radius: 8px;
        margin-bottom: 14px;
        overflow: hidden;
        background: #fff;
}
.stp-page .stp-faq-q {
        cursor: pointer;
        padding: 20px 56px 20px 24px;
        position: relative;
        font-weight: 600;
        font-size: 16px;
        color: var(--stp-dark);
        background: var(--stp-bg-light);
        margin: 0;
        transition: background .3s;
        list-style: none;
}
.stp-page .stp-faq-q:hover { background: var(--stp-bg-warm); }
.stp-page .stp-faq-q::after {
        content: "+";
        position: absolute;
        right: 22px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        font-weight: 400;
        color: var(--stp-accent);
        transition: transform .3s;
}
.stp-page .stp-faq-item.stp-open .stp-faq-q { background: var(--stp-bg-warm); border-left: 4px solid var(--stp-accent); }
.stp-page .stp-faq-item.stp-open .stp-faq-q::after { content: "−"; }
.stp-page .stp-faq-a {
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease, padding .35s ease;
        padding: 0 24px;
        color: var(--stp-text);
        font-size: 15px;
}
.stp-page .stp-faq-item.stp-open .stp-faq-a { max-height: 1200px; padding: 20px 24px 24px; }
.stp-page .stp-faq-a p { margin: 0 0 12px; }

/* ===================== GALERÍA ===================== */
.stp-page .stp-gallery-section { padding: 70px 0; }
.stp-page .stp-gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
}
.stp-page .stp-gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        aspect-ratio: 4/3;
        display: block;
        cursor: pointer;
}
.stp-page .stp-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.stp-page .stp-gallery-item:hover img { transform: scale(1.1); }
.stp-page .stp-gallery-overlay {
        position: absolute;
        inset: 0;
        background: rgba(62,106,114,0.78);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity .3s;
}
.stp-page .stp-gallery-item:hover .stp-gallery-overlay { opacity: 1; }
.stp-page .stp-gallery-overlay span { font-size: 2.4rem; color: #fff; }

/* ===================== BLOG ===================== */
.stp-page .stp-blog-section { padding: 80px 0; }
.stp-page .stp-blog-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 50px;
        align-items: start;
}
.stp-page .stp-blog-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
}
.stp-page .stp-post-card {
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 8px 28px rgba(0,0,0,0.07);
        display: flex;
        flex-direction: column;
        transition: transform .4s ease, box-shadow .4s ease;
}
.stp-page .stp-post-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.stp-page .stp-post-image { aspect-ratio: 16/10; overflow: hidden; }
.stp-page .stp-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.stp-page .stp-post-card:hover .stp-post-image img { transform: scale(1.07); }
.stp-page .stp-post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.stp-page .stp-post-date { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--stp-accent); margin-bottom: 8px; }
.stp-page .stp-post-title { font-family: 'Lora', serif; font-size: 20px; line-height: 1.3; margin: 0 0 12px; }
.stp-page .stp-post-title a { color: var(--stp-dark); text-decoration: none; }
.stp-page .stp-post-title a:hover { color: var(--stp-accent); }
.stp-page .stp-post-excerpt { font-size: 14px; color: var(--stp-text); margin: 0 0 18px; flex: 1; }
.stp-page .stp-post-readmore { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: var(--stp-teal); text-decoration: none; }
.stp-page .stp-post-readmore:hover { color: var(--stp-accent); }

/* Sidebar */
.stp-page .stp-blog-sidebar > * { margin-bottom: 34px; }
.stp-page .stp-widget-card { background: var(--stp-bg-light); border-radius: 10px; padding: 26px 24px; }
.stp-page .stp-widget-card h3 { font-family: 'Lora', serif; font-size: 18px; margin: 0 0 16px; color: var(--stp-dark); border-bottom: 2px solid var(--stp-accent); padding-bottom: 10px; }
.stp-page .stp-widget-card ul { list-style: none; margin: 0; padding: 0; }
.stp-page .stp-widget-card li { margin-bottom: 10px; }
.stp-page .stp-widget-card a { color: var(--stp-text); text-decoration: none; font-size: 14px; transition: color .3s; }
.stp-page .stp-widget-card a:hover { color: var(--stp-accent); }

/* Single post redesign */
.stp-page .stp-single-section { padding: 70px 0; }
.stp-page .stp-single-layout { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.stp-page .stp-single-body { max-width: 100%; font-size: 16px; color: var(--stp-text); }
.stp-page .stp-single-body h2 { font-family: 'Lora', serif; font-size: 26px; color: var(--stp-dark); margin: 34px 0 14px; }
.stp-page .stp-single-body h3 { font-size: 20px; color: var(--stp-teal); margin: 26px 0 12px; }
.stp-page .stp-single-body p { margin: 0 0 18px; }
.stp-page .stp-single-body img { border-radius: 8px; margin: 18px 0; }
.stp-page .stp-single-body a { color: var(--stp-teal); text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
        .stp-page .stp-blog-layout,
        .stp-page .stp-single-layout { grid-template-columns: 1fr; }
        .stp-page .stp-blog-sidebar { order: 2; }
}
@media (max-width: 768px) {
        .stp-page .stp-container { padding: 0 20px; }
        .stp-page .stp-content-section,
        .stp-page .stp-tours-section,
        .stp-page .stp-faq-section,
        .stp-page .stp-blog-section { padding: 50px 0; }
        .stp-page .stp-hero-content-wrapper h1 { letter-spacing: 4px; }
        .stp-page .stp-cta-section { padding: 60px 0; }
}
