/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
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: astra-child
Template: astra
*/

/* ==========================================================================
   My Account - Contenuto dashboard (parte destra)
   ========================================================================== */

/* Testo del saluto "Ciao nome utente" */
.woocommerce-MyAccount-content > p:first-child {
    text-transform: uppercase;
    font-size: 1.1em;
    font-weight: 600;
    color: #1a3a5c;
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f7ff 100%);
    padding: 18px 24px;
    border-radius: 10px;
    border-left: 4px solid #2271b1;
    margin-bottom: 20px;
}

/* Testo descrittivo della dashboard */
.woocommerce-MyAccount-content > p:nth-child(2) {
    color: #2c3e50;
    font-size: 0.95em;
    line-height: 1.7;
    background: #f8fbff;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #d4e5f7;
}

/* Link nella descrizione della dashboard */
.woocommerce-MyAccount-content > p:nth-child(2) a {
    color: #2271b1;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted #2271b1;
    transition: color 0.2s, border-color 0.2s;
}

.woocommerce-MyAccount-content > p:nth-child(2) a:hover {
    color: #135e96;
    border-bottom-color: #135e96;
}


/* ==========================================================================
   Checkout - Controlli rimuovi prodotto nel riepilogo
   ========================================================================== */

.cc-checkout-remove {
    display: inline-block;
    margin-left: 8px;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    background: #ffebee;
    color: #d32f2f;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cc-checkout-remove:hover {
    background: #d32f2f;
    color: #fff;
}


/* ==========================================================================
   Messaggio Donazione Premium
   ========================================================================== */

.cc-donation-message {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0;
    font-size: 0.9em;
    color: #5d4e00;
    line-height: 1.5;
}

.cc-donation-message .cc-donation-icon {
    font-size: 1.2em;
    margin-right: 4px;
}

@media (max-width: 768px) {
    .cc-donation-message {
        padding: 12px 14px;
        font-size: 0.85em;
    }
}


/* ==========================================================================
   Home — Sezione Icone Card
   ========================================================================== */

.cc-home-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 50px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.cc-home-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
    border: 1px solid #e8f0fe;
}

.cc-home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.cc-home-card svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.cc-home-card h3 {
    margin: 0 0 8px;
    font-size: 1.1em;
    color: #1a3a5c;
    font-weight: 700;
}

.cc-home-card p {
    margin: 0;
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .cc-home-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 30px 16px;
    }
    .cc-home-card {
        padding: 20px 14px;
    }
    .cc-home-card svg {
        width: 60px;
        height: 60px;
    }
    .cc-home-card h3 {
        font-size: 0.95em;
    }
}


/* ==========================================================================
   Footer Social Icons — Layout e Colori
   ========================================================================== */

/* Forza colori brand ufficiali sulle icone footer */
.ast-builder-layout-element .ast-social-inner-wrap {
    flex-wrap: wrap;
    justify-content: center;
}

/* Mobile: 4 + 3 layout */
@media (max-width: 768px) {
    .site-below-footer-wrap .ast-social-inner-wrap,
    .site-footer .ast-social-inner-wrap {
        display: grid !important;
        grid-template-columns: repeat(4, auto);
        gap: 12px;
        justify-content: center;
        justify-items: center;
    }
}

/* Colori brand ufficiali per le icone */
.ast-social-element-facebook .social-item-icon {
    color: #1877F2 !important;
}
.ast-social-element-instagram .social-item-icon {
    color: #E4405F !important;
}
.ast-social-element-email .social-item-icon {
    color: #EA4335 !important;
}
.ast-social-element-email_2 .social-item-icon {
    color: #0066cc !important;
}
.ast-social-element-facebook_group .social-item-icon {
    color: #1877F2 !important;
}
.ast-social-element-telegram .social-item-icon {
    color: #26A5E4 !important;
}
.ast-social-element-whatsapp .social-item-icon {
    color: #25D366 !important;
}


/* PEC — Icona personalizzata SVG (stesse dimensioni delle altre) */
.ast-builder-social-element.ast-email_2 .ahfb-svg-iconset {
    display: none !important;
}
.ast-builder-social-element.ast-email_2 {
    position: relative;
}
.ast-builder-social-element.ast-email_2::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Crect x='2' y='6' width='24' height='16' rx='2' fill='%230066cc'/%3E%3Cpath d='M2 8 L14 16 L26 8' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='21' cy='9' r='5' fill='%23e53935'/%3E%3Cpath d='M19.5 9 L20.5 10 L22.5 8' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ctext x='6' y='20' font-size='5' font-weight='bold' fill='%23fff' font-family='Arial'%3EPEC%3C/text%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Hover: ingrandisce TUTTE le icone social nel footer */
.ast-footer-social-1-wrap .ast-builder-social-element {
    transition: transform 0.3s ease;
}
.ast-footer-social-1-wrap .ast-builder-social-element:hover {
    transform: scale(1.4);
}


/* =========================================================================
   Home — Pulsanti azione (Pianifica, Inserisci, Segnala, Filtri)
   ========================================================================= */
.cc-home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    padding: 0 20px;
}

.cc-home-btn {
    display: inline-block;
    background: #3d6b40;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.cc-home-btn:hover {
    background: #2d5030;
    transform: translateY(-2px);
}

.cc-home-btn:active {
    transform: scale(0.96);
}

@media (max-width: 768px) {
    .cc-home-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 16px;
    }
    .cc-home-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 14px 20px;
    }
}
