/* ------------------------------------------------------------
   File: openfieldstudio/assets/css/styles.css
   ------------------------------------------------------------ */

/* RESET MINIMO ACCESSIBILE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------------------------------
   LINK DI SALTO
   ------------------------------------------------------------ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 999;
}

.skip-link:focus {
    top: 10px;
}

/* ------------------------------------------------------------
   LAYOUT GENERALE
   ------------------------------------------------------------ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    padding-bottom: 50px;
}

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
.site-header {
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

/* Layout orizzontale del blocco header */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Branding = logo + sottotitolo */
.branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Logo (unica definizione valida) */
.site-logo {
    height: 110px;   /* regola qui l’altezza come preferisci */
    width: auto;
    display: block;
}

/* Sottotitolo sotto al logo */
.site-subtitle {
    margin-top: 8px;
    font-size: 1rem;
    color: #333;
    font-weight: 600;      /* più incisivo */
    letter-spacing: 0.2px;
}

/* Navigazione principale */
.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
/* ------------------------------------------------------------
   HERO – Versione professionale & tecnica
   ------------------------------------------------------------ */
.hero {
    background: #eef0ff;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-btn {
    font-size: 1.05rem;
    padding: 14px 28px;
    background: #444;
    border-radius: 6px;
    transition: background 0.2s ease;
    display: inline-block;
    text-decoration: none;

}

.hero-btn:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
    text-decoration: none;
}

.hero-btn:hover {
    background: #000;
}


/* ------------------------------------------------------------
   GRID SERVIZI
   ------------------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    border: 1px solid #ddd;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    transition: box-shadow 0.2s ease;
}

.service-card:hover,
.service-card:focus-within {
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.service-card p {
    margin-bottom: 15px;
    color: #444;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #444;
    color: #fff;
    border-radius: 4px;
    font-size: 0.95rem;
    text-decoration: none !important;  /* rimuove qualunque sottolineatura */
    border: none;                       /* comportamento visivo da pulsante */
    cursor: pointer;                    /* coerenza con gli altri bottoni */
}


.btn:focus-visible,
.btn-submit:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
    text-decoration: none;
}


.btn:hover {
    background: #000;
    text-decoration: none !important;  /* evita la sottolineatura */
    outline: 2px solid #000;           /* accessibile: focus visibile */
    outline-offset: 2px;
}


/* ------------------------------------------------------------
   DETTAGLIO SERVIZIO
   ------------------------------------------------------------ */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.service-detail-img {
    border-radius: 6px;
    border: 1px solid #ddd;
}

.service-detail-text h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-price {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ------------------------------------------------------------
   FORM CONTATTI
   ------------------------------------------------------------ */
.contact-form {
    margin-bottom: 60px;
}

.form-accessible {
    display: grid;
    gap: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 1rem;
}

.alert-success {
    padding: 12px 20px;
    background: #d7ffd7;
    border: 1px solid #94d294;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.site-footer {
    background: #f7f7f7;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-nav a {
    text-decoration: none;
    color: #222;
}

.footer-nav a:hover,
.footer-nav a:focus {
    text-decoration: underline;
}
/* ------------------------------------------------------------
   FOOTER – Centrato
   ------------------------------------------------------------ */
.site-footer {
    text-align: center;
}

.footer-nav ul {
    justify-content: center;
}

.footer-nav a {
    display: inline-block;
}
/* ------------------------------------------------------------
   PAGINE LEGALI — OpenField Studio
   Struttura, tipografia, accessibilità
------------------------------------------------------------ */

/* Contenitore principale delle pagine legali */
.of-main--legal {
    padding: 4rem 1.5rem;
    background-color: #ffffff;
}

/* Layout centrale */
.of-legal-layout {
    max-width: 75ch;
    margin: 0 auto;
    padding-bottom: 3rem;
}

/* Header pagina legale */
.of-page-header--legal {
    max-width: 75ch;
    margin: 0 auto 3rem auto;
    text-align: left;
}

.of-page-kicker {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    color: #666;
}

.of-page-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    line-height: 1.25;
}

.of-page-intro {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 2rem;
}

/* Tipografia generale */
.of-legal-layout p {
    line-height: 1.65;
    margin: 1rem 0;
}

.of-legal-layout ul {
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.6;
}

.of-legal-layout li {
    margin-bottom: 0.4rem;
}

/* Spaziatura titoli */
.of-legal-layout h2 {
    margin-top: 2.8rem;
    margin-bottom: 1rem;
    font-size: 1.7rem;
}

.of-legal-layout h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
    color: #333;
}

/* Tabella Cookie — stile accessibile */
.of-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.of-table th,
.of-table td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.of-table th {
    font-weight: 700;
    background: #f8f8f8;
}

.of-table tr:hover td {
    background: #fafafa;
}

/* Link */
.of-main--legal a {
    color: #0051a3;
    text-decoration: underline;
}

.of-main--legal a:hover {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 700px) {
    .of-page-title {
        font-size: 1.8rem;
    }
    .of-page-intro {
        font-size: 1rem;
    }
    .of-legal-layout {
        padding: 0 0.5rem;
    }
}
.of-price-note {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}
/* ------------------------------------------------------------
   OTTIMIZZAZIONE PAGINA SERVIZIO — OpenField Studio
------------------------------------------------------------ */

/* Più aria sopra il titolo del servizio */
.page-header h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    line-height: 1.3;
}

/* Contenitore complessivo molto più compatto */
.service-detail {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 2.5rem !important;
    flex-wrap: nowrap;
}


/* Riduce lo spazio sotto l'intera pagina */
main {
    padding-bottom: 2rem !important;
}

/* Immagine meno ingombrante e senza padding inutile */
.service-detail-img {
    width: 380px;
    max-width: 100%;
    border-radius: 6px;
    margin: 0;
    padding: 0;
}

/* Testo più arioso e leggibile */
.service-detail-text {
    flex: 1;
    padding-top: 0.3rem;
}

.service-detail-text h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Categoria — più discreta */
.service-category {
    margin-bottom: 1rem;
    color: #555;
}

/* Prezzo */
.service-price {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.3rem;
}

/* Nota fiscale: molto discreta */
.of-price-note {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin-top: 0.2rem;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .service-detail {
        flex-direction: column;
        gap: 1.8rem;
    }

    .service-detail-img {
        width: 100%;
    }

    .page-header h2 {
        margin-top: 1.5rem;
    }
}
/* Breadcrumb categoria */
.breadcrumb {
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #0070c9;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Descrizione categoria */
.category-description {
    font-size: 1.1rem;
    color: #444;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}
/* ------------------------------------------------------------
   SISTEMA TAG — Pillole, lista tag, filtri
   ------------------------------------------------------------ */

/* Contenitore dei tag in servizi e servizio singolo */
.service-tags {
    margin: 0.4rem 0 1rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Singola pillola tag */
.tag-pill {
    display: inline-block;
    background: #eef3ff;
    color: #2a4ea5;
    padding: 3px 9px;
    margin: 0 6px 6px 0;
    border-radius: 12px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid #d6def8;
    transition: background 0.2s ease;
}

.tag-pill:hover,
.tag-pill:focus {
    background: #d6def8;
}

/* Barra filtri tag (opzionale per servizi.php e categoria.php) */
.tag-filter-bar {
    margin: 2rem 0 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

.tag-filter-bar span {
    color: #555;
    margin-right: 0.5rem;
    font-weight: 600;
}

.tag-filter-bar .tag-pill {
    margin-bottom: 0.4rem;
}
/* ------------------------------------------------------------
   FORM CHECKOUT — Layout coerente con le pagine legali
   ------------------------------------------------------------ */

/* Contenitore principale del form */
.of-main--form {
    padding: 4rem 1.5rem;
    background-color: #ffffff;
}

/* Colonna centrale in stile pagine legali */
.of-form-layout {
    max-width: 75ch;
    margin: 0 auto;
    padding-bottom: 3rem;
}

/* Titolo + intro */
.of-form-layout h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1.3;
}

.of-form-layout p.intro {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: #444;
}

/* Campi del form */
.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
}

.of-form-layout input:not([type="checkbox"]),
.of-form-layout textarea {
    max-width: 100%;
    width: 100%;
}


/* Blocco accettazione privacy + condizioni */


/* Pulsante submit */
.of-form-layout .btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;

}

.of-form-layout .btn-submit:hover,
.of-form-layout .btn-submit:focus {
    background: #000;
}

.of-form-layout .btn-submit:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}

/* Responsive */
@media (max-width: 700px) {
    .of-form-layout h2 {
        font-size: 1.7rem;
    }
    .of-form-layout p.intro {
        font-size: 1rem;
    }
}
/* Blocco accettazione privacy + condizioni — versione corretta */

.order-note {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.form-field input[type="number"] {
    max-width: 150px;
}
/* ------------------------------------------------------------
   CHECKOUT — CARD DI RIEPILOGO
------------------------------------------------------------ */

.of-summary-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    line-height: 1.55;
}

.of-summary-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.of-summary-card p {
    margin: 0.6rem 0 1rem 0;
}

.total-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #111;
}

.of-summary-actions {
    margin-top: 1.5rem;
}

/* --- BLOCCO FORM-ACCEPT (versione definitiva) --- */
.form-accept {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.8rem 0 1.2rem 0;
    font-size: 0.95rem;
    color: #444;
    flex-wrap: nowrap;
    
}

.form-accept input[type="checkbox"] {
    margin: 0.15rem 0 0 0;  /* sposta leggermente in basso */
    transform: scale(1.2);
    flex-shrink: 0;
}


.form-accept label {
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-size: 0.95rem;
    color: #444;
}

/* ------------------------------------------------------------
   PRE-ENGAGEMENT: LISTA PREVENTIVI (CARD STYLE)
------------------------------------------------------------ */

/* Header card pre-engagement */
.preventivo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.preventivo-card {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.preventivo-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

/* Header */
.preventivo-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.preventivo-header a {
    text-decoration: none;
    color: #005bb5;
}

.preventivo-header a:hover {
    text-decoration: underline;
}

.preventivo-titolo {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Stato 
.preventivo-stato {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.preventivo-stato.stato-attivo {
    background-color: #007b57;
}

.preventivo-stato.stato-bozza {
    background-color: #777;
}

.preventivo-stato.stato-chiuso {
    background-color: #b00000;
}

.preventivo-stato.stato-archiviato {
    background-color: #444;
}
*/
/* Sezioni */
.preventivo-card section p {
    margin: 0.25rem 0;
    line-height: 1.4;
}

.preventivo-card strong {
    color: #222;
}

/* Priorità – badge colorati */
.badge-priorita {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #eee;
    margin-left: 6px;
}

/* Varianti colore */
.badge-priorita.priorita-bassa {
    background: #e6f4ea;   /* verde tenue */
    color: #007b57;
}

.badge-priorita.priorita-media {
    background: #fff4d8;   /* arancio tenue */
    color: #c58c00;
}

.badge-priorita.priorita-alta {
    background: #fde8e7;   /* rosso tenue */
    color: #b00000;
}


/* Footer / Azioni */
.preventivo-azioni {
    margin-top: 1rem;
}

.preventivo-azioni a {
    display: inline-block;
    background: #005bb5;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.preventivo-azioni a:hover {
    background: #004799;
}

/* Link solo nella pagina lista preventivi */
.card-lista-preventivi a {
    text-decoration: none;
    color: #005bb5;
}

.card-lista-preventivi a:hover {
    text-decoration: underline;
}

.pre-engagement-edit input[type="text"],
.pre-engagement-edit select {
    padding: 0.5rem 0.6rem;
    font-size: 1rem;
    height: 2.2rem; /* valore ottimale */
}
.pre-engagement-edit main a:not(.btn-delete) {
    color: #000;
    text-decoration: none;
}

.pre-engagement-edit main a:hover {
    text-decoration: underline;
}
.btn-delete {
    display: inline-block;
    padding: 6px 12px;
    background: #B03A2E;   /* colore principale */
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-delete:hover,
.btn-delete:focus {
    background: #943126;   /* versione hover/focus */
}


.btn-delete:hover,
.btn-delete:focus {
    background: #b93838;       /* versione più scura per hover */
}

.btn-secondary {
    display: inline-block;
    padding: 8px 14px;
    background: #666;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #444;
}

/* Pre-Engagement – pulsanti compatti nella lista */
.lista-preventivi .btn-small {
    padding: 6px 10px;
    font-size: 0.85rem;
}

/* Pre-Engagement – Link stile testo (codice preventivo, ecc.) */
.lista-preventivi .btn-link {
    color: #005bb5;
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.lista-preventivi .btn-link:hover {
    text-decoration: underline;
}

.lista-preventivi .btn-link:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
    text-decoration: none;
}

/* Pre-Engagement – Badge Stato nella lista */
.lista-preventivi .badge-stato {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    display: inline-block;
}

/* Stato: Nuovo */
.lista-preventivi .stato-nuovo {
    background: #005bb5;
}

/* Stato: In lavorazione */
.lista-preventivi .stato-in-lavorazione {
    background: #c58c00;
}

/* Stato: Pendente cliente */
.lista-preventivi .stato-pendente-cliente {
    background: #b00000;
}

/* Stato: Chiuso */
.lista-preventivi .stato-chiuso {
    background: #007b57;
}
.admin-nav {
    background: #222;
    padding: 10px 16px;
    display: flex;
    gap: 20px;
}

.admin-nav a {
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a:focus {
    text-decoration: underline;
}
.admin-nav {
    background: #333;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.admin-nav a:hover {
    text-decoration: underline;
}
/* Backend – Accesso rapido */
.admin-quicklinks {
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn-admin-quick {
    display: inline-block;
    padding: 8px 16px;
    background: #222;
    color: #fff !important;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-admin-quick:hover,
.btn-admin-quick:focus {
    background: #000;
}
.table-input {
    height: 34px;
    padding: 4px 6px;
    font-size: 0.95rem;
    border: 1px solid #bbb;
    border-radius: 4px;
}
/* Badge stato - base */
.badge-stato {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* Stato: convertito */
.stato-convertito {
    background-color: #2d7d46; /* verde scuro */
    color: #ffffff;
}

/* Stato sconosciuto (fallback di sicurezza) */
.stato-sconosciuto {
    background-color: #6c757d;
    color: #ffffff;
}
