/*
Theme Name: Astra Child - Associazioni Template
Template: astra
Author: Siti Associazioni
Version: 2.4.0
Description: Child theme semplificato
*/

:root {
    --color-primary: #0073aa;
    --color-secondary: #005177;
    --color-accent: #00a0d2;
    --color-cta: #e67e22;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-heading: #1a1a1a;
    --color-bg-main: #ffffff;
    --color-bg-alt: #f9f9f9;
    --color-bg-dark: #2c3e50;
    --spacing-small: 10px;
    --spacing-medium: 20px;
    --spacing-large: 40px;
    --border-radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    overflow-x: hidden;
}

h1, h2, h3 { color: var(--color-heading); line-height: 1.3; }

a { color: var(--color-primary); transition: color 0.3s ease; }
a:hover { color: var(--color-secondary); }

/* BOTTONI */
.btn-cta,
.wp-block-button__link,
.ast-button,
.button {
    display: inline-block;
    background: var(--color-cta);
    color: #fff !important;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-cta:hover,
.wp-block-button__link:hover,
.ast-button:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-dona { background: var(--color-primary) !important; }
.btn-dona:hover { background: var(--color-secondary) !important; }

/* IFRAME WINDDOC */
.iframe-winddoc-wrapper {
    width: 100%;
    height: 1200px;
    margin: 40px 0;
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
}

.iframe-winddoc-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.iframe-label {
    text-align: center;
    font-size: 0.9em;
    color: var(--color-text-light);
    margin-top: 10px;
    font-style: italic;
}

/* ========================================
   FIX ASTRA - SOPRA/SOTTO HEADER VUOTI
   ======================================== */
.ast-above-header-wrap,
.ast-below-header-wrap {
    display: none !important;
}

/* ========================================
   ACCESSIBILITÀ
   ======================================== */
a:focus, button:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* UTILITY */
.text-center { text-align: center; }
.mt-large { margin-top: 40px; }
.mb-large { margin-bottom: 40px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .site-content { padding: 15px 10px; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .iframe-winddoc-wrapper { height: 1600px; }
    .btn-cta { padding: 12px 24px; font-size: 16px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .iframe-winddoc-wrapper { height: 1400px; }
}
