/**
 * Theme Name: Tecnica Verde
 * Template:   twentytwentyfour
 */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


:root :where(body) {
    font-family: 'Raleway';
    font-size: 18px;
    color: #262626;
    background-color: #EEECE6;
    line-height: 1.8;
}


h1,h2,h3,h4,h5,h6 {
    font-family: 'Roboto';
    color: #333;
    font-weight: 300;
}


h1 { font-size: 2.5rem; }
h2, .h2 .post-type-archive-tc-realizzazioni h1, .single-tc-realizzazioni h1,  .single-tc-progetti h1, footer .footer-testo-grande { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem;}
h6 { font-size: 1rem; }
.post-type-archive-tc-realizzazioni h2, .post-type-archive-tc-progetti h2 {
    font-size: 25px;
}





@media (min-width: 600px) {
    h1 { font-size: 3rem; }
    h2, .h2 .post-type-archive-tc-realizzazioni h1, .single-tc-realizzazioni h1,  .single-tc-progetti h1 footer .footer-testo-grande  { font-size: 2.5rem; }
    h3 { font-size: 2.25rem; }
    h4 { font-size: 2rem; }
    h5 { font-size: 1.75rem; }
    h6 { font-size: 1.5rem; }

    .post-type-archive-tc-realizzazioni h2, .post-type-archive-tc-progetti h2 {
        font-size: 27px;
    }
}

@media (min-width: 1024px) {
    h1 { font-size: 4rem; }
    h2, .h2 .post-type-archive-tc-realizzazioni h1, .single-tc-realizzazioni h1,  .single-tc-progetti h1, footer .footer-testo-grande  { font-size: 3.5rem; }
    h3 { font-size: 3rem; }
    h4 { font-size: 2.5rem; }
    h5 { font-size: 2rem; }
    h6 { font-size: 1.75rem; }

    .post-type-archive-tc-realizzazioni h2, .post-type-archive-tc-progetti h2 {
        font-size: 30px;
    }
}

@media (min-width: 1440px) {
    h1 { font-size: 5rem; }
    h2, .h2 .post-type-archive-tc-realizzazioni h1, .single-tc-realizzazioni h1,  .single-tc-progetti h1, footer .footer-testo-grande  { font-size: 4rem; } 
    h3 { font-size: 3.5rem; }
    h4 { font-size: 3rem; }
    h5 { font-size: 2.5rem; }
    h6 { font-size: 2rem; }

    .post-type-archive-tc-realizzazioni h2, .post-type-archive-tc-progetti h2 {
        font-size: 36px;
    }

}

main {
    margin-top: 0;
}


.sbg-gallery-titolo {
    margin-top: 0;
    font-size: 3.5rem;
}

/* -------------------------------------------------------------------------- */
/*                                   NAV BAR                                  */
/* -------------------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

header .has-base-background-color {
    background-color: transparent !important;
    transition: background-color 0.3s ease;
}


body.with-full-height-header header .has-base-background-color {
    color: white;
}

body.archive .has-base-background-color {
    color: #333;
}


header.scrolled .has-base-background-color{
    background-color: white !important;
    color: #333 !important;
}


/* -------------------------------------------------------------------------- */
/*                            COLONNE DI GUTENBERG                            */
/* -------------------------------------------------------------------------- */
@media(max-width:768px) {
    .wp-block-columns:nth-child(even) .wp-block-column:nth-child(1) {
        order:2;
    }
}

@media(max-width:768px) {
    .single-tc-realizzazioni .wp-block-columns:nth-child(even) .wp-block-column:nth-child(1), .single-tc-progetti .wp-block-columns:nth-child(even) .wp-block-column:nth-child(1) {
        order:0;
    }
}

.single-tc-realizzazioni .wp-block-columns:nth-child(even) .wp-block-column:nth-child(1) table {
    width:auto !important;
    max-width: 100%;
}

/* -------------------------------------------------------------------------- */
/*                               COLONNE ARCHIVI                              */
/* -------------------------------------------------------------------------- */
@media(min-width:769px) {
    .wp-block-post:nth-child(even) .wp-block-columns .wp-block-column:nth-child(1) {
        order: 2;
    }
}

/* -------------------------------------------------------------------------- */
/*                         IMMAGINI DENTRO LE COLONNE                         */
/* -------------------------------------------------------------------------- */
.wp-block-column figure, .wp-block-column img {
    width: 100%;
}


/* -------------------------------------------------------------------------- */
/*                        IMMAGINI IN EVIDENZA DEI POST                       */
/* -------------------------------------------------------------------------- */
.wp-block-post-featured-image img {
    border-radius: 0;
}


/* -------------------------------------------------------------------------- */
/*                     PILLOLA TAX REALIZZAZIONE ARCHIVIO                     */
/* -------------------------------------------------------------------------- */

.taxonomy-tc-realizzazione-type a, .taxonomy-tc-progetto-type a {
    background-color: transparent;
    border: .5px solid #333;
    color: #333;
}

.taxonomy-tc-realizzazione-type a:hover, .taxonomy-tc-progetto-type a:hover {
    text-decoration: none;
    background-color: #D6D4CE;
}


/* -------------------------------------------------------------------------- */
/*                     TAX TIPI REALIZZAZIONI DA SHORTCODE                    */
/* -------------------------------------------------------------------------- */
.tc-tipi-realizzazione {
    width: 100%;
}

.tc-tipi-realizzazione ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.tc-tipi-realizzazione ul li a {
    text-decoration: none;
    padding: 6px 14px;
    border: .5px solid #333;
    border-radius: min(1.5rem, 2vw);
}

.tc-tipi-realizzazione ul li a:hover {
    text-decoration: none;
    background-color: #D6D4CE;
}


/* -------------------------------------------------------------------------- */
/*                                CONTACT FORM                                */
/* -------------------------------------------------------------------------- */

.wpcf7-form-control {
    width: 100%;
    font-size: 16px;
    color: #333;
    font-family: 'Raleway';

    background-color: transparent;
}

input[type="text"].wpcf7-form-control, input[type="email"].wpcf7-form-control, textarea.wpcf7-form-control {
    border: none;
    border-bottom: .5px solid #333;
}

.wpcf7-submit {
    background-color: #144734;
    color: #fff;
    border:none;
    border-radius: 64px;
    font-weight: bold;
    text-align: center;
    padding: 12px 20px;
}


/* -------------------------------------------------------------------------- */
/*                       GALLERIA SINGOLA REALIZZAZIONE                       */
/* -------------------------------------------------------------------------- */

.single-tc-realizzazioni .eb-gallery-img-wrapper.grid, .single-tc-progetti .eb-gallery-img-wrapper.grid{
    gap: 10px;
}

.fslightbox-slide-btn-container-previous .fslightbox-slide-btn, .fslightbox-slide-btn-container-next .fslightbox-slide-btn {
    background-color: transparent !important;
}

.fslightbox-slide-btn-container-previous .fslightbox-slide-btn img, .fslightbox-slide-btn-container-next .fslightbox-slide-btn img  {
    max-width: 100px;
    opacity: 1;
}

.fslightbox-container {
    background: #000 !important;
}


/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */
footer .footer-testo-grande {
    max-width: 700px;
    line-height: 1.31;
}

footer .loghi-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

footer .loghi-footer figure {
    width: calc(50% - 40px);
    margin: 0 !important;
    opacity: .5;
    text-align: center;
}

footer.wp-block-template-part {
    margin-block-start: 0 !important;
}

@media(min-width:769px) {
    footer .loghi-footer {
        flex-direction: row;
        gap: 60px;
        align-items: center;
        justify-content: center;
    }

    footer .loghi-footer figure {
        max-width: 140px;
        width: auto;        
    }
}

footer .footer-informazioni-aziendali p{
    font-family: 'Raleway';
    font-size: 14px;
    color: #ccc;
    margin-top: 0;
}

footer .footer-informazioni-aziendali a {
    text-decoration: none;
    color: #888;
}

footer .footer-menu strong{
    font-family: 'Raleway';
    font-size: 18px;
    color: #fff;
}

footer .footer-menu ul {
    line-height: 1.3;
    gap: 1em;
}

footer .footer-menu nav a {
    font-family: 'Raleway';
    font-size: 16px;
    color: #888 !important;
    transition: all .5s ease-in-out;
}

footer .footer-menu nav a:hover {
    color: #fff !important;
}

/* -------------------------------------------------------------------------- */
/*                                 SOCIAL ICON                                */
/* -------------------------------------------------------------------------- */
.eb-social-links-wrapper ul.eb-socials li .facebook-f-original {
    background: none !important;
}

.eb-social-links-wrapper ul.eb-socials li .instagram-original {
    background: none !important;
}

.hvr-icon.eb-social-icon {
    color: #333 !important;
}

footer .hvr-icon.eb-social-icon {
    color: white !important;
    opacity: .7;
}



/* -------------------------------------------------------------------------- */
/*                                 RECENSIONI                                 */
/* -------------------------------------------------------------------------- */
.tc-recensioni .single-item-wrapper {
    display: flex !important;
    flex-direction: column-reverse !important;
}

.tc-recensioni .item-content-wrapper {
    background-color: transparent !important;
    text-align: center;
}

.tc-recensioni .item-content-wrapper::before {
    content: none;
    display: none;
}

.tc-recensioni .item-content-wrapper .item-content {
    font-size: 24px;
}

.tc-recensioni .swiper-pagination-bullet {
    position: relative;
    background: #333;
    opacity: 0.2;
    width: 5px;
    height: 5px;
    margin-left: 12px !important;
    margin-right: 12px !important;
}

.tc-recensioni .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #333;
    opacity: 1;
}

.tc-recensioni .swiper-pagination-bullet.swiper-pagination-bullet-active::before  {
    content: '';
    position: absolute;
    top: 50%; 
    left: 50%; 
    width: 25px; 
    height: 25px; 
    border: .5px solid #333;
    border-radius: 50%;
    box-sizing: border-box; 
    transform: translate(-50%, -50%);
  }

.tc-recensioni .swiper-arrow {
    background: transparent !important;
}

.tc-recensioni .swiper-arrow:focus {
    outline: none !important;
}

.tc-recensioni .swiper-arrow img {
    filter: contrast(0.5);
    width: 100px;
}

.tc-recensioni .swiper-arrow.swiper-button-prev {
    left: -60px !important;
} 

.tss-carousel .swiper-button-next {
    right: 30px !important;
}


/* -------------------------------------------------------------------------- */
/*                                   TABELLA                                  */
/* -------------------------------------------------------------------------- */

table {
    border: 0;
}

table th, table td {
    border-bottom: .5px solid #333;
    padding: 10px 5px;
}