﻿/* ============================
   BASE
============================ */

html, body {
    overflow-x: visible;
}

body {
    color: gray;
    font-size: 17px;
    font-family: Raleway, Arial;
}

img {
    max-width: 100%;
    height: auto;
}

img.displayed,
.logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ============================
   CONTENITORE FLUIDO
============================ */

#wrapper {
    width: 100%;
    background-color: #fff;
    padding: 0 20px; /* allinea al container */
    box-sizing: border-box;
    
}

#container {
    width: 100%;
    max-width: 1400px;
    margin: 1.25em auto;
    padding: 0 20px;
    background: url(../images/rete.jpg);
}

/* ============================
   MENU
============================ */

.topnav {
    overflow: hidden;
    background-color: green;
    margin-bottom: 10px;
}

.topnav a {
    float: left;
    display: block;
    color: #fff;
    text-align: center;
    padding: 24px 26px;
    margin-left: 10px;
    text-decoration: none;
    font-size: 18px;
}

.topnav a:hover {
    background-color: aqua;
    color: #000;
}

.topnav .icon {
    display: none;
}

/* ============================
   TESTI
============================ */

p.p1 {
    margin: 5px 0 10px;
    font-family: tahoma, sans-serif;
    font-size: 16px;
    color: #000;
    text-align: justify;
}

p.p2 {
    margin: 5px 0 10px;
    font-family: tahoma, sans-serif;
    font-size: 18px;
    color: blue;
    text-align: center;
}

h1 {
    padding: 5px 20px;
    margin: 10px auto;
    font-size: 20px;
    text-align: center;
    color: red;
    box-sizing: border-box;
    max-width: 100%;
}


h2 {
    margin: 10px;
    font-size: 18px;
    color: red;
}

h3, h4, h5 {
    margin: 10px;
    color: navy;
    text-align: center;
}

/* ============================
   SEZIONE SERVIZI MODERNA
============================ */

.assotaxi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

@media(max-width: 1400px) {
    .assotaxi-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media(max-width: 800px) {
    .assotaxi-grid {
        grid-template-columns: 1fr;
    }
}

.assotaxi-card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    text-align: center;
}

.assotaxi-card img {
    width: 100%;
    max-width: 260px;
    margin: 0 auto 20px auto;
}

.assotaxi-card p {
    font-size: 18px;
    line-height: 1.6;
}

/* ============================
   RIMOZIONE REGOLE OBSOLETE
============================ */

/* Eliminati: width:70%, width:90%, width:900%, max-width:100%, margin:-9999rem, float inutili */

#servizi,
.icone_servizi,
.colonna_unica,
.servizi,
.vantaggi,
.focus_servizio_1,
.focus_servizio_2,
.img_strategico,
.img_operativo {
    float: none;
    margin: 0 auto;
    padding: 0;
}

#content,
#innerContent {
    padding: 0 20px;
    box-sizing: border-box;
}


/* ============================
   MEDIA QUERY MENU MOBILE
============================ */

@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) { display: none; }
    .topnav a.icon { float: right; display: block; }
    .topnav.responsive { position: relative; }
    .topnav.responsive .icon { position: absolute; right: 0; top: 0; }
    .topnav.responsive a { float: none; display: block; text-align: left; }
}

/* SEZIONE CARTE */
.assotaxi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.assotaxi-card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    text-align: center;
}

.assotaxi-card img {
    width: 100%;
    max-width: 260px;
    margin: 0 auto 20px auto;
    display: block;
}

.assotaxi-card p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* LAYOUT FLUIDO */
#container {
    width: 100%;
    max-width: 1400px;
    margin: 1.25em auto;
    padding: 0 20px;
}

/* MIGLIORA LA LEGGIBILITÃ€ */
body {
    line-height: 1.6;
}

h1, h2, h3 {
    line-height: 1.3;
}

/* ottimizza per il mobile */
@media(max-width: 600px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    .assotaxi-card {
        padding: 20px;
    }
}


/* --- BOX DI RICERCA SOTTO IL TITOLO, ALLINEATO A SX --- */

.search-wrapper {
    width: 100%;
    margin: 15px 0 25px 0;
    padding-left: 5px;
    box-sizing: border-box;
}

#search {
    max-width: 420px;
    width: 100%;
}

#search h2 {
    margin: 0 0 5px 0;
    font-size: 18px;
    text-align: left;
}

.search-2 form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    height: 40px;
    box-sizing: border-box;
}

#submit {
    height: 40px;
    font-size: 16px;
    padding: 0 15px;
}

/* Mobile */
@media(max-width: 768px) {
    .search-wrapper {
        padding-left: 0;
    }

    .search-2 form {
        flex-direction: column;
    }

    #submit {
        width: 100%;
    }
}

/* --- CENTRATURA LINK FOOTER --- */
.footer-links {
    width: 100%;
    max-width: 80%;             /* larghezza minore del quaderno */
    margin: 0 auto;             /* centra il blocco */
    text-align: center;         /* centra i link dentro */
    padding: 60px 20px 0 60px;  /* sopra dx sotto sx */
    box-sizing: border-box;
    
}

.footer-links a {
    margin: 0 12px;
    display: inline-block;
    font-size: 17px;
}

/* --- SFONDO FOOTER --- */
#footer-wrapper {
    background-image: url('https://assotaxi.it/images/taxi-roma-footer-1400x500.jpg');
    background-repeat: no-repeat;
    /*background-size: auto 100%;       /* altezza piena, larghezza proporzionale */
    background-position: left top;  /* allinea a sx fissa, deborda a dx */
    background-attachment: scroll;  /* evita stretching */

    width: 100%;
    max-width: 1400px;       /* stessa larghezza del resto del sito */
    margin: 0 auto;          /* CENTRA il footer */
    display: flex;
    flex-direction: column;
    align-items: center;     /* centra i contenuti */
    padding: 20px 0;
    box-sizing: border-box;
}

/* --- COPYRIGHT CENTRATO --- */
#copyright {
    text-align: center;font-family:"arial narrow",sans-serif;font-size:19px;color:navy;font-weight:700;
    margin-top: 20px;
}

/* --- RIGA SHINYSTAT + W3C SOVRAPPOSTA AL FOOTER --- */
/* barra sovrapposta in basso al footer */
.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    box-sizing: border-box;
}

/* ShinyStat + W3C stessa altezza */
.footer-left img,
.footer-right img {
    display: block;
    height: 31px;
}



/* Contenitore generale */
#contatti {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Titoli */
#contatti h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

#contatti h2 small {
    font-size: 0.9rem;
}

/* whatsapp */
.whatsapp {
    display: flex;
    justify-content: space-between; /* logo a sx, testo a dx */
    align-items: center;
    gap: 10px; /* spazio tra i due blocchi */
}

/* Form */
#contact fieldset {
    border: none;
    margin: 12px 0;
    padding: 0;
}

#contact label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

#contact label.obbligatorio {
    color: #c00;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

#contact input:focus,
#contact textarea:focus {
    border-color: #0066cc;
    outline: none;
}

/* Privacy */
.privacy-box {
    background: #f7f7f7;
    padding: 12px;
    border-radius: 6px;
}

.consenso-riga {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Pulsante */
#contact-submit {
    background: #0066cc;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
}

#contact-submit:hover {
    background: #004c99;
}

/* --- FORM LEGGERMENTE MIGLIORATO --- */

#contatti .contenitore { /* lascia spazio dopo '#contatti' (significa che si riferisce a 'contenitore' dentro 'contatti' )*/
    max-width: 500px;
    margin: 0 auto;
}

#contact{background:#F9F9F9;padding:25px;margin:20px 0;box-shadow:0 0 20px 0 rgba(0,0,0,0.2),0 5px 5px 0 rgba(0,0,0,0.24)}                       

#contact fieldset {
    border: none;
    margin: 10px 0 16px 0;
    padding: 0;
}

#contact label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #003366; /* blu AssoTaxi */
}

#contact label small {
    font-weight: normal;
    font-size: 0.85rem;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #999;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff;
}

#contact textarea {
    min-height: 90px;
}

#contact input:focus,
#contact textarea:focus {
    border-color: #0066cc;
    outline: none;
}

/* privacy box */
.privacy-box {
    background: #f8f8f8;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.consenso-riga {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* pulsante */
#contact-submit {
    background: #0066cc;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}

#contact-submit:hover {
    background: #004c99;
}

.consenso-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.consenso-row input[type="radio"] {
    margin: 0 !important;
    padding: 0 !important;
}

#contact .consenso-row label {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 4px !important;
    margin-right: 12px !important;
    color: inherit !important;
}


#contact .consenso-row label { background: yellow !important; }

#shinystat {
    display: inline-block !important;
    margin-right: 10px;
}

#shinystat img {
    display: inline-block !important;
    height: 31px !important;
}
