/**
Theme Name: temaaf
Author: AF Project Carpi
Author URI: https://afproject.eu/
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: temaaf
Template: astra
*/

  :root {
            --primary: #f47c20;        /* Arancio - CTA, accenti, pin */
            --primary-dark: #c45e10;   /* Arancio scuro - hover */
            --secondary: #1a2e4a;      /* Notte - elementi secondari, badge, header */
            --secondary-dark: #11203a; /* Notte (hover, piu scuro) */
            --danger: #c0392b;         /* Rosso funzionale - errori/rimozioni */
            --danger-dark: #a53125;
            --text: #444441;
            --text-light: #888780;
            --light: #ffffff;
            --dark: #1a2e4a;           /* Notte - testi, header, simbolo */
            --accent: #d6e4f0;         /* Cielo - sfondi sezione, card */
            --border: #d3d1c7;
            --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
            --radius: 8px;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        html, body {
            height: 100%;
            font-family: 'Open Sans', sans-serif;
            color: var(--text);
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        }

        h1, h2, h3, h4, h5 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            color: var(--dark);
        }

        .auth-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        .auth-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), 
                        url('https://images.unsplash.com/photo-1511994717241-8e4e484dfa8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
            background-size: cover;
            background-position: center;
            z-index: 1;
        }

        .auth-box {
            background: var(--light);
            border-radius: 16px;
            padding: 40px;
            width: 100%;
            max-width: 450px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            position: relative;
            z-index: 2;
            animation: fadeIn 0.5s ease;
        }

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

        .auth-header {
            text-align: center;
            margin-bottom: 40px;
        }

        /* Language switcher */
        .cic-lang-switcher-auth {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 16px;
        }
        .cic-lang-switcher-auth .cic-lang-select {
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 13px;
            cursor: pointer;
            background: #fff;
            color: #444;
        }
        .cic-lang-switcher-auth .cic-lang-select:focus { outline: none; border-color: var(--primary); }

        .auth-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
        }

        .auth-logo img {
            height: 60px;
            width: auto;
        }

        .auth-header h1 {
            font-size: 28px;
            margin-bottom: 10px;
        }

        .auth-header p {
            color: var(--text-light);
            font-size: 16px;
        }

        .auth-form {
            margin-bottom: 30px;
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text);
            font-family: 'Montserrat', sans-serif;
            font-size: 15px;
        }

        .form-input {
            width: 100%;
            padding: 16px 20px;
            padding-right: 50px; /* Spazio per icona */
            border: 2px solid var(--border);
            border-radius: var(--radius);
            font-size: 16px;
            font-family: 'Open Sans', sans-serif;
            transition: var(--transition);
            background: var(--light);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(244, 124, 32, 0.2);
        }

        .form-input.error {
            border-color: var(--secondary);
        }

        .form-input.success {
            border-color: var(--primary);
        }

        .input-icon {
            position: absolute;
            right: 16px;
            top: 45px; /* Allineato con l'input */
            color: var(--text-light);
            font-size: 18px;
            cursor: pointer;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .form-error {
            color: var(--secondary);
            font-size: 14px;
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .form-success {
            color: var(--primary);
            font-size: 14px;
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* FIXED NAVIGATION BAR - SEMPRE IN ALTO */
        .auth-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid var(--border);
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px 0;
            transition: var(--transition);
        }

        .back-button:hover {
            color: var(--primary-dark);
        }

        .nav-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            transition: var(--transition);
        }

        .nav-link:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .nav-placeholder {
            width: 80px; /* Mantiene il layout simmetrico */
        }

        /* CONTENUTO FORM */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .checkbox-container {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .checkbox-input {
            display: none;
        }

        .checkbox-custom {
            width: 20px;
            height: 20px;
            border: 2px solid var(--border);
            border-radius: 4px;
            margin-right: 10px;
            position: relative;
            transition: var(--transition);
        }

        .checkbox-input:checked + .checkbox-custom {
            background: var(--primary);
            border-color: var(--primary);
        }

        .checkbox-input:checked + .checkbox-custom::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--light);
            font-size: 14px;
        }

        .auth-button {
            width: 100%;
            padding: 18px;
            background: var(--primary);
            color: var(--light);
            border: none;
            border-radius: var(--radius);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Montserrat', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 25px;
        }

        .auth-button:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(244, 124, 32, 0.3);
        }

        .auth-button:active {
            transform: translateY(0);
        }

        .auth-button.secondary {
            background: var(--secondary);
        }

        .auth-button.secondary:hover {
            background: var(--secondary-dark);
            box-shadow: 0 10px 20px rgba(192, 57, 43, 0.3);
        }

        .auth-divider {
            position: relative;
            text-align: center;
            margin: 30px 0;
            color: var(--text-light);
        }

        .auth-divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--border);
            z-index: 1;
        }

        .auth-divider span {
            background: var(--light);
            padding: 0 20px;
            position: relative;
            z-index: 2;
            font-size: 14px;
        }

        .social-login {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 30px;
        }

        .social-button {
            padding: 14px;
            border: 2px solid var(--border);
            background: var(--light);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 600;
            font-family: 'Montserrat', sans-serif;
            font-size: 14px;
        }

        .social-button:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .btn-google {
            color: #DB4437;
        }

        .btn-facebook {
            color: #4267B2;
        }

        .btn-strava {
            color: #FC4C02;
        }

        .auth-footer {
            text-align: center;
            color: var(--text);
            font-size: 15px;
        }

        .auth-link {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            margin-left: 5px;
            transition: var(--transition);
        }

        .auth-link:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .password-strength {
            margin-top: 10px;
        }

        .strength-bar {
            height: 6px;
            background: var(--border);
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 5px;
        }

        .strength-fill {
            height: 100%;
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 3px;
        }

        .strength-text {
            font-size: 13px;
            color: var(--text-light);
        }

        .terms-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 25px;
        }

        .terms-text {
            font-size: 14px;
            color: var(--text);
        }

        .terms-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }

        .terms-link:hover {
            text-decoration: underline;
        }

        .recovery-instructions {
            background: rgba(244, 124, 32, 0.1);
            border: 1px solid var(--primary);
            border-radius: var(--radius);
            padding: 20px;
            margin-bottom: 30px;
        }

        .recovery-instructions h4 {
            color: var(--primary);
            margin-bottom: 10px;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .recovery-instructions ul {
            padding-left: 20px;
            color: var(--text);
            font-size: 14px;
            line-height: 1.6;
        }

        .recovery-instructions li {
            margin-bottom: 8px;
        }

        /* PAGE TRANSITIONS */
        .auth-page {
            display: none;
        }

        .auth-page.active {
            display: block;
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .auth-box {
                padding: 30px 20px;
            }
            
            .auth-header h1 {
                font-size: 24px;
            }
            
            .social-login {
                grid-template-columns: 1fr;
            }
            
            .form-options {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .auth-nav {
                flex-wrap: wrap;
                gap: 15px;
            }
            
            .nav-placeholder {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .auth-container {
                padding: 10px;
            }
            
            .auth-box {
                padding: 25px 15px;
            }
            
            .auth-header {
                margin-bottom: 30px;
            }
            
            .auth-logo img {
                height: 50px;
            }
            
            .form-input {
                padding: 14px 16px;
                padding-right: 45px;
            }
            
            .auth-button {
                padding: 16px;
            }
            
            .auth-nav {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
        }

        /* DARK MODE SUPPORT */
        @media (prefers-color-scheme: dark) {
            :root {
                --light: #1a1a1a;
                --dark: #f0f0f0;
                --text: #cccccc;
                --text-light: #999999;
                --accent: #2a2a2a;
                --border: #444444;
                --shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
            }
            
            body {
                background: #121212;
            }
            
            .auth-box {
                background: var(--light);
            }
            
            .form-input {
                background: #2a2a2a;
                color: var(--dark);
                border-color: var(--border);
            }
            
            .social-button {
                background: #2a2a2a;
                border-color: var(--border);
            }
        }