/*
Theme Name: Orientamenti Verticali
Theme URI: https://orientamentiverticali.it
Author: Franco Casoni
Description: Tema custom WordPress per il progetto Orientamenti Verticali. Gestione dinamica di Libri e Riflessioni.
Version: 1.0
Text Domain: orientamenti-verticali
*/

/* ==========================================================================
   STILI ORIGINALI DEL SITO (Incolla qui sotto il tuo CSS personalizzato)
   ========================================================================== */

        /* --- VARIABILI E COLORI PRINCIPALI --- */
        :root {
            --bg-color: #fcfaf2; /* Sfondo chiaro caldo (avorio) */
            --primary-color: #1a2e40; /* Blu profondo */
            --accent-color: #2c4a3e; /* Verde scuro discreto */
            --text-dark: #2b2b2b; /* Grigio caldo scuro */
            --text-muted: #595959; /* Grigio medio */
            --line-color: #d1c7bd; /* Linee di dettaglio */
            --color-link-hover: #bf3233; /* Colore link al passaggio del mouse */
        }

        /* --- RESET E IMPOSTAZIONI DI BASE --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .margintext{
            margin-bottom: 2rem;

        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-dark);
            font-family: 'Plus Jakarta Sans', sans-serif;
            line-height: 1.8;
            overflow-x: hidden;
        }

        h1, h2, h3, h4 {
            font-family: 'Playfair Display', serif;
            color: var(--primary-color);
            font-weight: 600;
            letter-spacing: 0.02em;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
        }
       .hero-tags a:hover,h2 a:hover,h3 a:hover,h4 a:hover,p a:hover,li a:hover, .media-intro a:hover {
            color: var(--color-link-hover);
        }

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

        section {
            padding: 10rem 0;
            border-bottom: 1px solid rgba(209, 199, 189, 0.3);
        }
        section.noborder {
            border-bottom: none;
        }
        section:last-of-type {
            border-bottom: none;
        }

        .section-title {
            font-family: 'Cinzel', serif;
            font-size: 2.2rem;
            text-align: center;
            letter-spacing: 0.15em;
            margin-bottom: 5rem;
            color: var(--primary-color);
        }

        /* --- LOGO VETTORIALE --- */
        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .logo-graphics {
            width: 45px;
            height: 45px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-circle {
            width: 35px;
            height: 35px;
            border: 2px solid var(--primary-color);
            border-radius: 50%;
            border-left-color: var(--line-color);
            transform: rotate(45deg);
        }

        .logo-line {
            position: absolute;
            width: 2px;
            height: 45px;
            background-color: var(--accent-color);
            top: 0;
        }

        .logo-text {
            font-family: 'Cinzel', serif;
            font-size: 1.4rem;
            letter-spacing: 0.15em;
            font-weight: 700;
            color: var(--primary-color);
        }

        /* --- HEADER & NAVIGAZIONE --- */
        header {
            padding: 1.8rem 0;
            background-color: rgba(252, 250, 242, 0.95);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid rgba(209, 199, 189, 0.4);
            backdrop-filter: blur(5px);
        }

        .nav-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            position: relative;
        }

        .main-menu {
            display: flex;
            list-style: none;
            gap: 2rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .main-menu a {
            font-size: 0.85rem;
            font-weight: 500;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-muted);
            padding: 0.3rem 0;
        }

        .main-menu a:hover {
            color: var(--color-link-hover);
        }

        /* --- HAMBURGER MENU --- */
        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 21px;
            background: transparent;
            border: none;
            cursor: pointer;
            z-index: 1100;
            position: absolute;
            right: 2rem;
            top: 50%;
            transform: translateY(-50%);
        }

        .hamburger span {
            width: 100%;
            height: 3px;
            background-color: var(--primary-color);
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
        .hamburger.active span:nth-child(2) { opacity: 0; }
        .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

        /* --- HERO SECTION --- */
        .hero {
            text-align: center;
            padding: 6rem 0 10rem 0;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .hero h1 {
            font-family: 'Cinzel', serif;
            font-size: 3.8rem;
            letter-spacing: 0.15em;
            line-height: 1.2;
            margin-bottom: 3rem;
        }

        .banner-wrapper {
            width: 100%;
            max-width: 900px;
            background-color: rgba(209, 199, 189, 0.15);
            padding: 2rem;
            border-radius: 4px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            margin-bottom: 4rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .header-banner {
            width: 100%;
            height: auto;
            max-height: 450px;
            object-fit: contain;
        }

        .vertical-emblem {
            width: 1px;
            height: 60px;
            background: linear-gradient(to bottom, var(--accent-color), transparent);
            margin: 2rem 0;
        }

        .hero-quote {
            font-style: italic;
            font-size: 1.45rem;
            max-width: 850px;
            color: var(--text-dark);
            margin-bottom: 2rem;
            font-family: 'Playfair Display', serif;
            line-height: 1.6;
        }

        .hero-subtitle {
            font-size: 1.15rem;
            color: var(--text-muted);
            max-width: 650px;
            margin-bottom: 2.5rem;
        }

        .hero-tags {
            font-size: 0.95rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--accent-color);
            font-weight: 600;
        }

        /* --- AREE PRINCIPALI --- */
        .areas-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4rem;
        }

        .area-card {
            background: #fff;
            padding: 3rem;
            border: 1px solid rgba(209, 199, 189, 0.3);
            border-radius: 4px;
        }

        .area-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1.2rem;
            position: relative;
            padding-bottom: 0.6rem;
        }

        .area-card h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 1px;
            background-color: var(--line-color);
        }

        .area-card p {
            color: var(--text-muted);
            font-size: 1rem;
        }

        /* --- BIOGRAFIA --- */
        .profile-container {
            max-width: 850px;
            margin: 0 auto;
        }

        .profile-text h3 {
            font-family: 'Cinzel', serif;
            font-size: 2.2rem;
            margin-bottom: 0.6rem;
            letter-spacing: 0.05em;
        }

        .profile-subtitle {
            font-style: italic;
            color: var(--accent-color);
            margin-bottom: 2rem;
            font-size: 1.1rem;
            font-family: 'Playfair Display', serif;
        }

        .profile-text p {
            margin-bottom: 1.5rem;
            color: var(--text-dark);
            text-align: justify;
            font-size: 1.05rem;
        }

        /* --- SEZIONE LIBRI: ACCORDION / COLLAPSE --- */
        .accordion-wrapper {
            max-width: 900px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .accordion-item {
            background-color: #fff;
            border: 1px solid rgba(209, 199, 189, 0.4);
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.01);
            transition: box-shadow 0.3s ease;
        }

        .accordion-item:hover {
            box-shadow: 0 10px 25px rgba(0,0,0,0.03);
        }

        .accordion-header {
            width: 100%;
            background: #fff;
            border: none;
            outline: none;
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            text-align: left;
            transition: background-color 0.3s ease;
        }

        .accordion-header:hover {
            background-color: rgba(209, 199, 189, 0.05);
        }

        .accordion-header-title h3 {
            font-size: 1.4rem;
            font-family: 'Cinzel', serif;
            letter-spacing: 0.05em;
            margin-bottom: 0.2rem;
        }

        .accordion-header-title p {
            font-size: 0.95rem;
            font-style: italic;
            color: var(--accent-color);
            font-family: 'Playfair Display', serif;
        }

        .accordion-icon {
            font-size: 1.5rem;
            color: var(--primary-color);
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            background-color: #fff;
        }

        .accordion-body {
            padding: 2rem;
            border-top: 1px solid rgba(209, 199, 189, 0.2);
            display: grid;
            grid-template-columns: 1fr 1.8fr;
            gap: 3rem;
            align-items: start;
        }

        /* Stato Aperto gestito da JS */
        .accordion-item.active .accordion-icon {
            transform: rotate(180deg);
        }

        .accordion-item.active .accordion-content {
            max-height: 1200px;
        }

        .accordion-book-img {
            width: 100%;
            max-width: 200px;
            height: auto;
            object-fit: contain;
            box-shadow: 5px 12px 25px rgba(0,0,0,0.12);
            margin: 0 auto;
            display: block;
        }

        .accordion-book-details p {
            color: var(--text-dark);
            font-size: 1.05rem;
            margin-bottom: 1.5rem;
            text-align: justify;
        }

        /* Azioni del libro (Bottoni e Link) */
        .book-actions {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            flex-wrap: wrap;
            margin-top: 1.5rem;
        }

        .detail-link {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--primary-color);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 1px solid var(--primary-color);
            padding-bottom: 2px;
        }

        .detail-link:hover {
            color: var(--accent-color);
            border-color: var(--accent-color);
        }

        /* Pulsante visualizza tutti i libri a fondo sezione */
        .view-all-container {
            text-align: center;
            margin-top: 4rem;
        }

        .view-all-button {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background-color: transparent;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
            padding: 1rem 2.5rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            font-size: 0.9rem;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .view-all-button:hover {
            background-color: var(--color-link-hover);
            color: #fff;
        }

        /* Stili Tabella Dati Tecnici */
        .specs-table-container {
            margin: 2rem 0;
        }

        .book-specs-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.95rem;
        }

        .book-specs-table th, .book-specs-table td {
            padding: 0.8rem 0;
            border-bottom: 1px solid rgba(209, 199, 189, 0.3);
            text-align: left;
        }

        .book-specs-table th {
            font-weight: 600;
            color: var(--primary-color);
            width: 35%;
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 0.08em;
        }

        .buy-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background-color: var(--accent-color);
            color: #fff !important;
            padding: 0.8rem 1.8rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            font-size: 0.85rem;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(44, 74, 62, 0.15);
        }

        .buy-button:hover {
            background-color: var(--color-link-hover);
            transform: translateY(-1px);
        }

        /* Menu a briciola di pane */
        .inner-breadcrumbs {
            list-style: none;
            display: flex;
            gap: 0.5rem;
            font-size: 0.8rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 1rem;
        }

        .inner-breadcrumbs li::after {
            content: '/';
            margin-left: 0.5rem;
            color: var(--line-color);
        }

        .inner-breadcrumbs li:last-child::after {
            content: '';
        }

        .inner-breadcrumbs .current {
            color: var(--accent-color);
            font-weight: 600;
        }

        /* --- RECENSIONI --- */
        .reviews-container {
            max-width: 850px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 4rem;
        }

        .review-card {
            text-align: center;
            padding: 0 1.5rem;
            border-left: 2px solid rgba(209, 199, 189, 0.4);
        }

        .review-text {
            font-family: 'Playfair Display', serif;
            font-size: 1.4rem;
            font-style: italic;
            margin-bottom: 1rem;
            color: var(--text-dark);
        }

        .review-source {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* --- LISTA ARTICOLI --- */
        .articles-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            max-width: 900px;
            margin: 0 auto;
        }

        .article-link {
            display: flex;
            align-items: center;
            gap: 1.2rem;
            padding: 1.5rem;
            border: 1px solid rgba(209, 199, 189, 0.3);
            background-color: #fff;
            border-radius: 4px;
        }

        .article-link:hover {
            border-color: var(--color-link-hover);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.02);
        }

        .article-icon {
            color: var(--accent-color);
            font-size: 1.2rem;
        }

        .article-link span:last-child {
            font-size: 1.05rem;
            font-weight: 500;
        }

        /* --- MEDIA --- */
        .media-intro {
            text-align: center;
            max-width: 750px;
            margin: 0 auto;
            font-size: 1.15rem;
            color: var(--text-muted);
            line-height: 1.8;
        }

        /* --- CONTATTI E SOCIAL --- */
        .contact-box {
            max-width: 700px;
            margin: 0 auto;
            text-align: center;
        }

        .contact-intro {
            margin-bottom: 3rem;
            font-size: 1.2rem;
        }

        .contact-details {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            align-items: center;
        }

        .email-field {
            font-family: monospace;
            font-size: 1.15rem;
            padding: 1rem 2.5rem;
            border: 1px dashed var(--line-color);
            background: rgba(255,255,255,0.7);
            display: inline-block;
            width: 100%;
            max-width: 450px;
            color: var(--primary-color);
            font-weight: 600;
        }

        .social-subscription-wrap {
            display: flex;
            gap: 1.5rem;
            width: 100%;
            max-width: 450px;
            justify-content: center;
        }

        .social-sub-btn {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 0.8rem 1.2rem;
            background: #fff;
            border: 1px solid var(--line-color);
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-dark);
        }

        .social-sub-btn svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        .social-sub-btn:hover {
            background-color: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
        }
        /* --- STRUTTURA PAGINA DETTAGLIO --- */
        .book-detail-wrapper {
            display: grid;
            grid-template-columns: 1fr 1.8fr;
            gap: 5rem;
            align-items: start;
            margin-top: 2rem;
        }

  /* Colonna sinistra: Copertina e Bottone */
        .book-cover-column {
            position: sticky;
            top: 150px;
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .cover-frame {
            background-color: #fff;
            padding: 2.5rem 2rem;
            border: 1px solid rgba(209, 199, 189, 0.4);
            border-radius: 4px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.04);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .main-book-cover {
            width: 100%;
            max-width: 240px;
            height: auto;
            object-fit: contain;
            box-shadow: 5px 12px 25px rgba(0,0,0,0.12);
        }

        .buy-button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            background-color: var(--accent-color);
            color: #fff;
            padding: 1.1rem 2rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            font-size: 0.9rem;
            border-radius: 4px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(44, 74, 62, 0.2);
        }

        .buy-button:hover {
            background-color: var(--primary-color);
            color: #fff;
            box-shadow: 0 4px 12px rgba(26, 46, 64, 0.2);
            transform: translateY(-2px);
        }

        /* Colonna destra: Informazioni e Testo */
        .book-category {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--accent-color);
            font-weight: 600;
            display: block;
            margin-bottom: 0.5rem;
        }

        .book-main-title {
            font-family: 'Cinzel', serif;
            font-size: 2.8rem;
            line-height: 1.2;
            margin-bottom: 0.3rem;
            color: var(--primary-color);
        }

        .book-author-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            font-style: italic;
            color: var(--text-muted);
            margin-bottom: 3.5rem;
        }
 /* --- BRICIOLA DI PANE (BREADCRUMBS) --- */
        .breadcrumbs {
            padding-top: 3rem;
            padding-bottom: 0;
        }

        .breadcrumbs ol {
            list-style: none;
            display: flex;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .breadcrumbs li::after {
            content: '/';
            margin-left: 0.5rem;
            color: var(--line-color);
        }

        .breadcrumbs li:last-child::after {
            content: '';
        }

        .breadcrumbs .current {
            color: var(--accent-color);
            font-weight: 600;
        }

        /* --- STRUTTURA TABELLARE CARATTERISTICHE --- */
        .specs-table-container {
            margin-bottom: 4rem;
        }

        .book-specs-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.95rem;
        }

        .book-specs-table th, .book-specs-table td {
            padding: 1.1rem 0;
            border-bottom: 1px solid rgba(209, 199, 189, 0.4);
            text-align: left;
        }

        .book-specs-table th {
            font-weight: 600;
            color: var(--primary-color);
            width: 35%;
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 0.08em;
        }

        .book-specs-table td {
            color: var(--text-dark);
        }

        /* --- DESCRIZIONE ESTESA --- */
        .book-long-description h2 {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--primary-color);
        }

        .book-long-description p {
            margin-bottom: 1.5rem;
            color: var(--text-dark);
            text-align: justify;
            font-size: 1.05rem;
        }

        .book-long-description ul {
            margin-bottom: 1.5rem;
            padding-left: 1.5rem;
        }

        .book-long-description li {
            margin-bottom: 0.8rem;
            color: var(--text-dark);
            font-size: 1.05rem;
        }

        footer {
            padding: 5rem 0;
            background-color: #f5f1e6;
            text-align: center;
            font-size: 0.9rem;
            color: var(--text-muted);
            border-top: 1px solid rgba(209, 199, 189, 0.5);
            letter-spacing: 0.05em;
        }
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}
.footer-menu a {
    text-decoration: none;
    color: inherit;
}
.footer-socials a:hover {
    opacity: 0.7; /* Effetto al passaggio del mouse sui social */
    transition: opacity 0.2s ease;
}
        /* --- RESPONSIVE DESIGN --- */
        @media (max-width: 850px) {
            .accordion-body {
                grid-template-columns: 1fr;
                gap: 2rem;
                text-align: center;
            }
            .accordion-book-details p {
                text-align: center;
            }
            .accordion-book-details ul {
                display: inline-block;
                text-align: left;
            }
            .book-actions {
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            section { padding: 6rem 0; }
            .hero h1 { font-size: 2.4rem; }
            .areas-grid, .articles-list { grid-template-columns: 1fr; }
            
            .nav-container {
                flex-direction: row;
                justify-content: space-between;
                width: 100%;
                padding: 0 1rem;
            }

            .hamburger { display: flex; }

            .main-menu {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--bg-color);
                flex-direction: column;
                align-items: center;
                gap: 0;
                padding: 0;
                max-height: 0;
                overflow: hidden;
                border-bottom: 0px solid rgba(209, 199, 189, 0.4);
            }

            .main-menu.active {
                max-height: 380px; 
                padding: 1.5rem 0;
                border-bottom: 1px solid rgba(209, 199, 189, 0.4);
                background-color: #fdfcf7;
            }

            .main-menu li { width: 100%; text-align: center; }
            .main-menu a { display: block; padding: 0.9rem 0; font-size: 0.95rem; border-bottom: 1px solid rgba(209, 199, 189, 0.1); }
            .main-menu li:last-child a { border-bottom: none; }
        }
          /* --- RESPONSIVE DESIGN --- */
        @media (max-width: 900px) {
            .book-detail-wrapper {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            .book-cover-column {
                position: relative;
                top: 0;
                max-width: 400px;
                margin: 0 auto;
                width: 100%;
            }
            .book-main-title {
                font-size: 2.2rem;
            }
        }

        @media (max-width: 768px) {
            .nav-container {
                flex-direction: row;
                justify-content: space-between;
                width: 100%;
                padding: 0 1rem;
            }

            .hamburger { display: flex; }

            .main-menu {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--bg-color);
                flex-direction: column;
                align-items: center;
                gap: 0;
                padding: 0;
                max-height: 0;
                overflow: hidden;
                border-bottom: 0px solid rgba(209, 199, 189, 0.4);
                transition: all 0.3s ease;
            }

            .main-menu.active {
                max-height: 380px; 
                padding: 1.5rem 0;
                border-bottom: 1px solid rgba(209, 199, 189, 0.4);
                background-color: #fdfcf7;
            }

            .main-menu li { width: 100%; text-align: center; }
            .main-menu a { display: block; padding: 0.9rem 0; font-size: 0.95rem; border-bottom: 1px solid rgba(209, 199, 189, 0.1); }
            .main-menu li:last-child a { border-bottom: none; }
        }

        .review-detail-wrapper.no-cover .book-content-column {
    width: 100%;
    max-width: 100%;
}



/* Campi di Input, Textarea e Select (Dimensioni Maggiorate) */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem; /* Carattere più grande e leggibile */
    color: var(--text-dark);
    background-color: var(--bg-color); /* Sfondo avorio chiaro per i campi */
    border: 1px solid rgba(209, 199, 189, 0.6);
    border-radius: 4px;
    padding: 1.2rem 1.5rem; /* Padding aumentato per dare più respiro e spazio */
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none; /* Rende omogeneo il select su iOS */
}

/* Dropdown Select (Adattato alle nuove dimensioni) */
.wpcf7-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='https://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 10 6'><path fill='%231a2e40' d='M0 0l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.5rem center; /* Spostato leggermente a sinistra per via del padding maggiorato */
    background-size: 12px 8px;
    padding-right: 3.5rem;
}

/* Textarea / Messaggio (Dimensioni Maggiorate) */
.wpcf7-form textarea {
    resize: vertical;
    min-height: 220px; /* Altezza minima aumentata per una scrittura più comoda */
    line-height: 1.7;
}

/* Effetto Focus sui campi */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(44, 74, 62, 0.08); /* Glow leggermente più ampio per compensare le nuove dimensioni */
}/* Contenitore del pulsante (Centraggio) */
.form-submit-container {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Spazio tra il pulsante e lo spinner */
}

/* Formattazione del Pulsante d'Invio */
.wpcf7-form input[type="submit"].wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color); /* Verde scuro discreto */
    color: #fff !important;
    border: 2px solid var(--accent-color);
    padding: 1.1rem 3rem; /* Pulsante ampio e importante */
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 74, 62, 0.2);
    width: auto;
}

/* Effetto Hover (Passaggio del mouse) */
.wpcf7-form input[type="submit"].wpcf7-submit:hover {
    background-color: var(--color-link-hover); /* Rosso caldo del sito */
    border-color: var(--color-link-hover);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(191, 50, 51, 0.25);
}

/* Allineamento dello Spinner di caricamento di CF7 */
.wpcf7-spinner {
    margin: 10px auto !important;
    position: absolute; /* Evita che la comparsa dello spinner sposti il pulsante verso sinistra */
    transform: translateX(120px); /* Lo posiziona elegantemente alla destra del pulsante */
}

/* Adattamento per dispositivi mobili */
@media (max-width: 768px) {
    .form-submit-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .wpcf7-form input[type="submit"].wpcf7-submit {
        width: 100%; /* Su mobile occupa tutta la larghezza per facilitare il click */
    }

    .wpcf7-spinner {
        position: relative;
        transform: none; /* Su mobile lo spinner torna sotto il pulsante per non rompere il layout */
        margin-top: 10px !important;
    }
}