/*
Theme Name:   Cana AdElia Child
Theme URI:    https://www.cana-adelia.it
Description:  Child theme per Fondazione Cana AdElia basato su Astra
Author:       Fondazione Cana AdElia
Author URI:   https://www.cana-adelia.it
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  cana-adelia-child
*/

/* ============================================
   IMPORTAZIONE GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ============================================
   VARIABILI CSS - PALETTE COLORI
   ============================================ */
:root {
    /* Colori Primari - Azzurro tenue */
    --primary-soft: #e8f4f8;
    --primary-light: #d4ebf2;
    --primary-medium: #a8d5e2;
    
    /* Colori Accent - Pesca/Corallo */
    --accent-warm: #f4d9c6;
    --accent-peach: #e8b59a;
    --accent-coral: #d88d6f;
    
    /* Neutri */
    --white: #ffffff;
    --near-white: #fdfcfc;
    --black: #000000;
    --gray-light: #f5f5f5;
    
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

/* ============================================
   RESET BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
    font-weight: 400;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
    font-family: var(--font-heading);
    color: var(--black);
    font-weight: 500;
    line-height: 1.3;
}

h1, .h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2, .h2 { font-size: 2.5rem; letter-spacing: -0.5px; }
h3, .h3 { font-size: 2rem; letter-spacing: -0.3px; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--accent-coral);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #c77d5f;
    text-decoration: underline;
}

strong, b {
    font-weight: 600;
}

/* ============================================
   HEADER
   ============================================ */
.site-header,
.main-header-bar {
    background: var(--white);
    border-bottom: 1px solid var(--primary-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-title a,
.site-logo-img {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--black);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.site-description {
    font-size: 0.8rem;
    color: var(--black);
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* Menu Navigation */
.main-header-menu,
.main-navigation {
    font-family: var(--font-body);
}

.main-header-menu a,
.main-navigation a {
    color: var(--black);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-header-menu a:hover,
.main-navigation a:hover {
    background: var(--primary-soft);
    color: var(--black);
    transform: translateY(-2px);
    text-decoration: none;
}

.main-header-menu .current-menu-item a,
.main-navigation .current-menu-item a {
    background: var(--primary-light);
    color: var(--black);
}

/* Mobile Menu */
.ast-mobile-menu-buttons {
    color: var(--black);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.ast-breadcrumbs-wrapper,
.breadcrumb-trail {
    font-size: 0.9rem;
    color: var(--black);
    padding: 1rem 0;
}

.ast-breadcrumbs-wrapper a,
.breadcrumb-trail a {
    color: var(--accent-coral);
    font-weight: 500;
}

.ast-breadcrumbs-wrapper a:hover,
.breadcrumb-trail a:hover {
    text-decoration: underline;
}

/* ============================================
   HERO SECTION / BANNER
   ============================================ */
.hero-section,
.page-header {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
}

.hero-section h1,
.page-header h1,
.entry-title {
    font-size: 3.5rem;
    color: var(--black);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-highlight,
.accent-text {
    color: var(--accent-coral);
    font-weight: 600;
}

.hero-subtitle,
.page-description {
    font-size: 1.25rem;
    color: var(--black);
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

/* ============================================
   BUTTONS / CTA
   ============================================ */
.wp-block-button__link,
.ast-button,
.button,
.btn,
input[type="submit"],
button[type="submit"] {
    font-family: var(--font-body);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

/* Primary Button */
.btn-primary,
.wp-block-button.is-style-fill .wp-block-button__link,
.ast-button.button-primary {
    background: var(--accent-coral);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(216, 141, 111, 0.25);
}

.btn-primary:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background: #c77d5f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(216, 141, 111, 0.35);
    text-decoration: none;
}

/* Secondary Button */
.btn-secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-3px);
    text-decoration: none;
}

/* ============================================
   CARDS / FEATURES
   ============================================ */
.feature-card,
.wp-block-column,
.ast-col-sm-12 {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-light);
    margin-bottom: 2rem;
}

.feature-card:hover,
.wp-block-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.feature-card h3,
.wp-block-column h3 {
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.5rem;
}

.feature-card p,
.wp-block-column p {
    color: var(--black);
    opacity: 0.85;
    line-height: 1.8;
}

/* Card con bordo colorato superiore */
.feature-card.card-coral,
.card-accent-1 {
    border-top: 4px solid var(--accent-coral);
}

.feature-card.card-blue,
.card-accent-2 {
    border-top: 4px solid var(--primary-medium);
}

.feature-card.card-peach,
.card-accent-3 {
    border-top: 4px solid var(--accent-peach);
}

/* ============================================
   SECTION BACKGROUNDS
   ============================================ */
.section-light,
.bg-light {
    background: var(--white);
}

.section-blue,
.bg-blue {
    background: var(--primary-soft);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.section-peach,
.bg-peach {
    background: var(--accent-warm);
    border: 1px solid var(--accent-peach);
    border-radius: 12px;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.section-gray,
.bg-gray {
    background: var(--gray-light);
}

/* ============================================
   CONTENT AREA
   ============================================ */
.site-content,
.ast-container {
    padding: 3rem 2rem;
}

.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
}

.entry-content img {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--primary-light);
    max-width: 100%;
    height: auto;
}

/* ============================================
   LISTS
   ============================================ */
.entry-content ul,
.entry-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Custom styled list */
.info-list,
.check-list {
    list-style: none;
    margin-left: 0;
}

.info-list li,
.check-list li {
    padding: 0.75rem 0;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.info-list li:before,
.check-list li:before {
    content: "✓";
    color: var(--accent-coral);
    font-weight: bold;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.contact-item .icon {
    font-size: 2.5rem;
    color: var(--accent-coral);
    margin-bottom: 0.5rem;
}

.contact-item strong {
    font-weight: 600;
    color: var(--black);
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--black);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FORMS
   ============================================ */
.wpcf7-form,
.contact-form,
form {
    max-width: 600px;
    margin: 2rem auto;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--black);
    background: var(--white);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(216, 141, 111, 0.1);
}

.wpcf7-form textarea,
textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--gray-light);
    border-top: 1px solid var(--primary-light);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-widget-area {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-widget h2,
.footer-widget h3,
.footer-widget h4 {
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-widget p,
.footer-widget a,
.footer-widget li {
    color: var(--black);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.footer-widget a:hover {
    color: var(--accent-coral);
    opacity: 1;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.site-info,
.ast-footer-copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-light);
    color: var(--black);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-up {
    animation: fadeInUp 1s ease;
}

.fade-in-left {
    animation: fadeInLeft 1s ease;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus states */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-coral);
    outline-offset: 2px;
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-coral);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    /* Typography */
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    
    /* Hero */
    .hero-section h1,
    .page-header h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle,
    .page-description {
        font-size: 1rem;
    }
    
    /* Cards */
    .feature-card,
    .wp-block-column {
        padding: 1.5rem;
    }
    
    /* Sections */
    .section-blue,
    .section-peach {
        padding: 2rem 1rem;
    }
    
    /* Contact */
    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-widget-area {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Spacing */
    .site-content,
    .ast-container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 544px) {
    body {
        font-size: 14px;
    }
    
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    
    .btn,
    .button {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
