/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
 Text Domain: gsa-theme
*/

/*#region ==== COLORS and VARS ==== */
:root {
    --accent: #ff7f2f;
    --accent-strong: #ff6709;
    --cyan: #00afb2;
    --light-cyan: #cbe7ea;
    --dark-cyan: #007380;
    --darker-cyan: #38474f;
    --gray: #666666;
    --light-gray: #eeeeee;
    --dark-gray: #212529;
    --black: #000000;
    --white: #ffffff;

    --elements-radius: 2px;

    /* Hack to remove scollbar from viewport size (js follows) */
    --viewportwidth: 100vw;

    /* Legacy */
    --orange: var(--accent);
  }
  /* canada colors */
  [data-canada-style] {
    --accent: #e30613;
    --accent-strong: #ff0413;
  }

  /* Legacy */
  .has-orange-color {
    color: var(--accent);
  }
  .has-orange-background-color {
    background-color: var(--accent);
  }

/*#endregion */

/*#region ==== THEME ==== */

/* Fix for 404 pages container with 0 height */
.error404 .generate-columns-container.masonry-container {
    height: inherit !important;
}

/* Font size for smaller devices */
@media screen and (max-width:400px) {
    h3 {
        font-size: 1.8rem !important;
    }
    h4 {
        font-size: 1.4rem !important;
    }
}

/* Buttons full width for mobile */
@media screen and (max-width:400px) {
    .wp-block-buttons>.wp-block-button {
    width: 100% !important;
}
}

 /* Align full fix */
.no-sidebar .entry-content .alignfull {
	margin-left: calc(-1 * var(--viewportwidth)/2 + 100%/2);
	margin-right: calc(-1 * var(--viewportwidth)/2 + 100%/2);
}

  /* Top Bar */
select#gsa-site-language-selector, .pll-switcher-select {
    background: var(--white) !important;
    border: none;
    border-radius: var(--elements-radius);
    padding: 0.1em;
    margin-left: 10px;
    cursor: pointer;
    font-size: 15px;
}
.secondary-navigation #gsa-site-language-selector, .secondary-navigation .pll-switcher-select {
    order: 3;
}
.secondary-navigation .main-nav {
    order: 2;
    margin-right: auto;
}
.secondary-navigation .menu-bar-item {
    order: 1;
}

  /* Header, Menu */
.gsa-header {
    height: 80vh;
    max-width: 100%;
    background-size: cover;
    background-position: center center;
    box-shadow: inset 0 0 0 2000px #0000004d;
}
.gsa-header .grid-container {
    width: 100%;
    height: 100%;
    position: relative;
    padding-left: 40px;
    padding-right: 40px;
}
.gsa-header .entry-header {
    position: absolute;
    bottom: 0;
}
.gsa-video-container {
    position: relative;
    height: 600px;
}
.gsa-video-container video {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    z-index: -1;
}
.gsa-logo-container {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}
.gsa-video-container .gsa-video-logo {
    width: 350px;
}
.gsa-video-heading {
    color: var(--white);
    font-size: 3rem;
    padding-top: 190px;
    font-weight: 800;
    text-align: center;
    z-index: 0;
}
@media screen and (max-width:768px) {
    .gsa-header {
        height: 40vh;
    }
    .gsa-video-heading {
        font-size: 1.7rem;
    }
}
.gsa-video-heading::before {
    position: absolute;
    content: "";
    background-image: url("data:image/svg+xml; utf8, <svg width='40px' height='20px' viewBox='0 0 40 20'  xmlns='http://www.w3.org/2000/svg'><g id='1-2' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'><g id='GSA-Page-Services' transform='translate(-328.000000, -804.000000)' fill='%23FF7F30' ><g id='Group-30' transform='translate(56.000000, 508.000000)'><g id='Group-33' transform='translate(0.000000, 159.000000)'><path d='M287.268539,152.342415 L285.337874,152.342415 C284.598922,152.342415 284,151.74327 284,151.004541 C284,150.265588 284.598922,149.666667 285.337874,149.666667 L289.995459,149.666667 C290.734189,149.666667 291.333333,150.265588 291.333333,151.004541 L291.333333,155.662126 C291.333333,156.400855 290.734189,157 289.995459,157 C289.25673,157 288.657585,156.400855 288.657585,155.662126 L288.657585,154.533814 C286.854951,156.109634 284.527251,157 282.043591,157 C276.505526,157 272,152.514076 272,147.000106 C272,141.485924 276.505526,137 282.043591,137 C288.407004,137 290.857898,141.976814 293.020389,146.36787 C295.156874,150.706294 297.001972,154.45323 301.956196,154.45323 C306.084006,154.45323 309.442101,151.109745 309.442101,147.000106 C309.442101,142.890468 306.084006,139.54677 301.956196,139.54677 C299.081757,139.54677 296.426231,141.217876 295.191192,143.804334 C294.887868,144.439329 294.124975,144.709498 293.486992,144.407494 C292.849009,144.105489 292.577659,143.345703 292.881196,142.710496 C294.537649,139.241582 298.09995,137 301.956196,137 C307.494261,137 312,141.485924 312,147.000106 C312,152.514076 307.494261,157 301.956196,157 C295.407335,157 292.919138,151.947208 290.723608,147.489086 C288.624852,143.227278 286.812367,139.54677 282.043591,139.54677 C277.915994,139.54677 274.557899,142.890468 274.557899,147.000106 C274.557899,151.109745 277.915994,154.45323 282.043591,154.45323 C284.033166,154.45323 285.888691,153.686379 287.268539,152.342415 Z' id='Combined-Shape'></path></g></g></g></g></svg>");
    width: 410px;
    max-width: 50%;
    height: 100%;
    display: block;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -35%);
    transform: translate(-50%, -35%);
    z-index: -1;
}
.site-main .inside-article .entry-title {
    display: none;
}
.archive .inside-article .entry-title {
    display: block;
    font-size: 22px;
}
.search .page-title { /* Title in search results page */
    color: var(--accent);
}
.archive .page-title {
    color: var(--accent);
}
.site-header, .sub-menu {
    -webkit-box-shadow: 0 3px 5px rgba(0,0,0,.1);
    box-shadow: 0 3px 5px rgba(0,0,0,.1);
    z-index: 2;
}
.main-navigation .main-nav ul li a, .menu-toggle, .main-navigation .menu-bar-item > a {
    margin-top: 10px;
    margin-bottom: 10px;
}
.gsa-menu-button {
    display: flex;
    margin-left: 20px;
}
.gsa-menu-button a {
    border: 1px solid var(--cyan);
    border-radius: var(--elements-radius);
}
.gsa-menu-button a:hover {
    background: var(--accent);
    color: var(--white) !important;
    border-color: var(--accent);
}
.navigation-branding img, .site-logo.mobile-header-logo img {
    height: 60px !important;
}
@media screen and (max-width:768px) {
    .gsa-header .grid-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}
.main-navigation ul ul { /* fixing arrow misplacements for 2nd level menu */
    width: max-content;
}

/* Search */
.secondary-navigation .inside-navigation {
    flex-direction: row-reverse;
}
.secondary-navigation .menu-bar-item>a {
    line-height: 30px !important;
}
.search-modal-fields {
    border: 2px solid var(--light-gray);
    border-radius:  var(--elements-radius);
}
.secondary-navigation .inside-navigation .gp-icon svg {
    fill: var(--white);
}

/* Intro*/
.gsa-intro {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    padding-left: 60px;
    padding-top: 40px;
}
.gsa-intro-title  {
    margin-bottom: 40px;
}
.gsa-intro-description {
    position: relative;
}
.gsa-favicon {
    position: absolute;
    top: -4px;
    left: -80px;
    width: 50px;
}
@media screen and (max-width:768px) {
    .gsa-intro {
        padding-left: 0;
        margin-left: 20px;
        margin-right: 20px;
    }
    h2.gsa-intro-title {
        font-size: 28px;
    }
    .gsa-favicon {
        display: none;
    }
}

/* Social Links Container */
.gsa-social-links-container {
    display: flex;
    justify-content: space-evenly;
    padding-top: 80px;
    padding-bottom: 70px;
    background-color: #fcfcfc;
}
.gsa-social-links-container a img {
    height: 50px;
    width: 50px;
}
.gsa-social-links-container a img:hover {
    opacity: 0.8;
}

/* Form */
.gsa-form .grid-container {
    position: relative;
    margin-top: 60px;
}
.gsa-form {
    margin-top: 50px;
    background-size: cover;
    background-position: top center;
}
.gsa-form:before {
    background-image: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 30%);
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
}
.gsa-form-title {
    text-align: center;
    color: var(--accent);
}
.gsa-form-subtitle {
    text-align: center;
}
.gsa-form-label {
    text-align: center;
    color: var(--accent);
}
.gsa-form-embed {
    background-color: var(--white);
    max-width: 700px;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
}
.hbspt-form .hs-custom-style fieldset input:not([type=checkbox]), .hbspt-form .hs-custom-style fieldset select {
    min-height: 40px !important;
    border-radius: var(--elements-radius);
}
.hbspt-form .hs-custom-style textarea {
    width: 95% !important;
}
.hbspt-form .hs-custom-style .form-columns-1, .hbspt-form .hs-custom-style .form-columns-2, .hbspt-form .hs-custom-style .form-columns-3 {
    margin-bottom: 10px !important;
}
.hbspt-form .hs-button {
    height: 40px;
    background: var(--accent) !important;
    border-radius: var(--elements-radius) !important;
    width: 100%;
}
input.hs-button.primary.large {
    text-shadow: none;
}
input.hs-button.primary.large:hover {
    font-size: inherit;
}
.hbspt-form .hs-error-msg {
    color: red;
}

/* Footer */
.footer-widgets a {
    text-decoration: none;
}
.footer-widgets .widget-title {
    border-bottom: 1px solid var(--light-cyan);
    padding-bottom: 17px;
    color: var(--white);
}
/* Second Footer */
.gsa-footer {
    padding-left: 40px;
    padding-right: 40px;
    background-color: var(--dark-cyan);
    color: var(--white);
}
/* .gsa-footer .inside-footer-widgets {
    padding-left: 40px;
    padding-right: 40px;
} */
.gsa-second-footer {
    display: flex;
    row-gap: 20px;
}
.gsa-second-footer .widget a {
    text-decoration: none;
    color: var(--white);
}
.gsa-second-footer-links, .gsa-second-footer-social {
    flex-basis: 20%;
}
.gsa-second-footer-links .widget_nav_menu {
    padding-left: 0 !important;
}
.gsa-second-footer-offices {
    flex-basis: 80%;
    display: flex;
    flex-wrap: wrap;
}
.gsa-second-footer-offices .gsa-offices-info {
    margin-bottom: 20px;
    flex-basis: 33%;
}
.gsa-second-footer-offices .gsa-office-name {
    display: block;
    border-bottom: 1px solid var(--light-cyan);
    padding-bottom: 10px;
    margin-bottom: 10px !important;
}
.gsa-second-footer-offices svg {
    margin-right: 0 !important;
}
.gsa-second-footer-offices svg path {
    fill: var(--white) !important;
}
.gsa-second-footer-social {
    display: flex;
    flex-direction: column;
}
.gsa-second-footer-social a {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    column-gap: 10px;
    margin-bottom: 5px;
}
.gsa-second-footer-social a svg {
    color: var(--white);
}
.gsa-second-footer-social a:hover {
    color: var(--accent);
}
.menu-footer-links-container ul {
    list-style: none;
    margin-left: 0;
}
.menu-footer-links-container a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
}
.menu-footer-links-container a:hover {
    color: var(--accent);
}
@media screen and (max-width:768px) {
    .gsa-offices-info {
        padding-left: 0 !important;
    }
    .gsa-footer .inside-footer-widgets {
        padding-left: 0;
        padding-right: 0;
    }
    .gsa-second-footer {
        flex-wrap: wrap;
    }
    .gsa-second-footer .gsa-second-footer-links {
        flex-basis: 50%;
    }
    .gsa-second-footer .gsa-second-footer-social {
        flex-basis: 50%;
    }
    .gsa-second-footer .gsa-second-footer-offices {
        flex-basis: 100%;
    }
    .gsa-second-footer-offices .gsa-offices-info {
        flex-basis: 100%;
    }
}
/* Partners Slider */
.gsa-partners-container {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--light-gray);
    padding: 40px;
    align-items: center;
}
.gsa-partner-title {
    width: 20%;
    text-align: center;
}
.gsa-partners-swiper {
    width: 80%;
    overflow: hidden;
}
.gsa-partners-swiper .swiper-slide {
    display: flex;
    align-self: center;
    justify-content: center;
}
.gsa-partners-swiper .swiper-slide img {
    max-width: 170px;
    max-height: 65px;
    width: auto;
}
@media screen and (max-width:768px) {
    .gsa-partners-container {
        display: block;
    }
    .gsa-partner-title {
        width: 100%;
        margin-bottom: 20px;
    }
}



/*#endregion */

/*#region ==== ELEMENTS AND BLOCKS ==== */

/* Buttons */
.wp-block-button__link {
    border-radius: var(--elements-radius);
    text-transform: uppercase;
    padding-left: 25px;
    padding-right: 25px;
}
.is-style-outline .wp-block-button__link {
    color: var(--accent) !important;
    background-color: transparent !important;
}
.is-style-outline .wp-block-button__link:hover {
    color: var(--white) !important;
    background-color: var(--accent-strong) !important;
    border-color: var(--accent-strong) !important;
}
@media screen and (max-width:768px) {
    .wp-block-button, .wp-block-button__link {
        width: 100%;
    }
}

/* Lists */
.entry-content ul {
    list-style: disclosure-closed;
}

/* Separators */
.wp-block-separator {
    border-top: none;
}

/* ACF Google Map */
.acf-map {
    width: auto;
    height: 350px;
}
.acf-map img {
   max-width: inherit !important;
}

/* Google Reviews slider (swiper) */
.gsa-google-reviews-swiper {
    overflow: hidden;
}
.gsa-google-reviews-swiper .swiper-slide {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
}
.gsa-google-reviews-swiper .swiper-pagination {
    position: relative;
}
.gsa-review-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gsa-google-place {
    margin-bottom: 30px;
}
.gsa-google-place-logo {
    margin-right: 10px;
    width: 35px;
    transform: translate(-1px, 12px);
}
.gsa-google-place-name {
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}
.gsa-google-place-total-reviews {
    width: 100%;
    font-size: 14px;
    text-align: center;
}
.gsa-google-place-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.gsa-google-place-rating .star {
    font-size: 1.3em;
}
.gsa-google-place-average-rating {
    font-size: 25px;
    font-weight: 300;
    padding-right: 6px;
}
.star-rating ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.star-rating li {
    font-size: 2rem;
    color: #d3d3d3; /* Colore delle stelle non riempite */
    position: relative;
    display: inline-block;
}
.star-rating[data-rating="0"] li:before {
    color: #d3d3d3;
}
.star-rating[data-rating="1"] li:nth-child(-n+1) {
    color: #ffd700; /* Colore delle stelle riempite */
}
.star-rating[data-rating="2"] li:nth-child(-n+2) {
    color: #ffd700;
}
.star-rating[data-rating="3"] li:nth-child(-n+3) {
    color: #ffd700;
}
.star-rating[data-rating="4"] li:nth-child(-n+4) {
    color: #ffd700;
}
.star-rating[data-rating="5"] li:nth-child(-n+5) {
    color: #ffd700;
}
/* Modal search headbar */
.search-modal-form .search-field, .search-modal-form .search-field:focus {
    color: var(--white);
}
.search-modal-form .icon-search svg {
    fill: var(--white);
}
.search-modal-form button,.search-modal-form button:hover {
    border-left: 2px solid var(--white);
}

/* Youtube Embed Facade */
.youtube-wrapper {
    /* position: relative; */
    width: 100%;
    height: 0;
    /* padding-bottom: 56.25%; */ /* Aspect ratio 16:9 */
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
}
.youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-box-shadow: 0px 0px 31px -26px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 31px -26px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 31px -26px rgba(0,0,0,0.75);
}
.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    text-align: center;
    line-height: 42px;
    cursor: pointer;
    z-index: 1;
}
.youtube-play-button::before {
    content: '▶';
    font-size: 24px;
}

/* Floating Block Navigation Menu */
.wp-block-navigation__responsive-container-content {
    margin-bottom: 40px;
}
.wp-block-navigation__container {
    column-gap: 35px;
}
@media screen and (min-width:768px) {
    .wp-block-navigation__responsive-container {
        height: 50px;
    }
    .wp-block-navigation {
        position: -webkit-sticky;
        position: sticky;
        top: 62px;
        z-index: 9999;
        background-color: var(--white);
        padding-top: 15px;
        margin-bottom: 30px;
    }
}
@media screen and (max-width:768px) {
    .wp-block-navigation  {
        position: -webkit-sticky;
        position: sticky;
        left: 15px;
        top: 25px;
        z-index: 9999;
    }
    .wp-block-navigation__responsive-close {
        width: auto;
    }
    .wp-block-navigation__responsive-container-open,
    .wp-block-navigation__responsive-container-close {
        position: -webkit-sticky;
        position: sticky;
        left: 15px;
        top: 25px;
        z-index: 9999;
    }
    .wp-block-navigation__responsive-dialog {
        margin-top: 0 !important;
        position: absolute;
        left: 30px;
    }
    .wp-block-navigation__responsive-container-content {
        color: var(--white);
        background-color: var(--cyan) !important;
        border: 1px solid var(--light-cyan);
        border-radius: var(--elements-radius);
        margin-right: 20px;
        margin-left: 20px;
        margin-bottom: inherit;
        padding: 20px !important;
    }
    .wp-block-navigation__responsive-container {
        background-color: #ffffffa6 !important;
    }
    .wp-block-navigation__submenu-container {
        padding-left: 20px !important;
        padding-top: 10px !important;
    }
    .wp-block-navigation-submenu li .wp-block-navigation-item__label {
    font-size: 16px;
    }
    .wp-block-navigation.is-responsive button {
        background-color: var(--accent);
        color: var(--white);
        border-radius: 50%;
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
        border: 1px solid;
    }
    .wp-block-navigation.is-responsive button svg {
        height: 35px;
        width: 35px;
    }
}

/*#endregion */

/*#region ==== PATTERNS ==== */
/* White Card, Tip */
.gsa-block-whitecard, .gsa-block-tip {
    padding: 8vw 15vw;
}
@media screen and (max-width:768px) {
    .gsa-block-whitecard, .gsa-block-tip {
        padding: 8vw 5vw;
    }
}
/* Image and text */
@media screen and (max-width:768px) {
    .gsa-block-image-and-text .wp-block-media-text__content {
        margin-top: 30px;
    }
}
/* CTA */
.gsa-block-cta {
    background-color: var(--accent);
}
.gsa-block-cta .wp-block-columns, .gsa-block-cta .wp-block-columns p {
    margin-bottom: 0;
}
.gsa-block-cta .wp-block-columns p:first-child {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.5;
    padding-bottom: 0
}
.gsa-block-cta .wp-block-columns p {
    padding: 20px;
}
.gsa-block-cta .wp-block-buttons .is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--white) !important;
    border: 2px solid;
}
.gsa-block-cta .wp-block-buttons .is-style-outline .wp-block-button__link:hover {
    background-color: var(--white) !important;
    color: var(--accent) !important;
}
@media screen and (max-width:768px) {
    .gsa-block-cta .wp-block-columns p {
        font-size: 1.5rem;
        text-align: center;
        padding: 0;
    }
}
/* Image link */
.gsa-block-imagelink .wp-block-column .wp-block-button__link  {
    background-color: rgba(0, 115, 128, 0.6) !important;
}
/* Buttons Grid */
.gsa-block-button-grid .wp-block-buttons {
    column-gap: 10px !important;
}
.gsa-block-button-grid .wp-block-buttons .wp-block-button {
    width: calc(100% / 3 - 20px);
    align-self: normal !important;
}
.gsa-block-button-grid .wp-block-buttons .wp-block-button__link {
    width: 100%;
    padding: 3em 1em;
    text-transform: none !important;
    /* background: rgba(0 149 157 / 34%) !important */
}
.gsa-block-button-grid .wp-block-buttons .wp-block-button__link:hover {
    background: rgba(203,231,234,.9) !important;
}
.gsa-block-button-grid .wp-block-buttons .wp-block-button__link img:first-of-type {
    width: 60px !important;
    display: block;
    margin: 0 auto 1.5em;
}
/* Slider */
.gsa-block-slider .wp-block-cover__inner-container .wp-block-group {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}
/* Accordions */
.gsa-block-accordions {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .c-accordion__title:after {
      border: 1px solid;
      padding: 5px 12px;
      top: 50%;
      margin-right: 15px;
      color: var(--dark-cyan);
  }
  .c-accordion__title {
      border-bottom: 1px solid;
      padding-bottom: 30px;
      padding-top: 20px;
      padding-left: 10px;
      color: var(--dark-cyan);
      line-height: 1 !important;
      margin-bottom: 10px !important;
  }
  .c-accordion__content {
    padding-left: 20px;
  }
@media screen and (max-width:768px) {
    .c-accordion__title:after {
      padding: 3px 8px;
      margin-right: 0;
  }
  .gsa-block-accordions .wp-block-group__inner-container {
    padding-left: 0;
    padding-right: 0;
    }
}
/* FAQ */
.wp-block-yoast-faq-block {
    margin-bottom: 50px;
}

  /* Strip */
.gsa-block-strip .wp-block-group__inner-container p {
    margin-bottom: 0;
}
.gsa-block-strip .wp-block-columns:nth-of-type(odd),
.gsa-block-strip .wp-block-columns:nth-of-type(odd):not(:last-of-type)::after {
    background: var(--light-cyan) !important;
}
.gsa-block-strip .wp-block-columns:nth-of-type(even),
.gsa-block-strip .wp-block-columns:nth-of-type(even):not(:last-of-type)::after {
    background: var(--dark-cyan) !important;
}
.gsa-block-strip .wp-block-group__inner-container {
    padding-left: 0;
    padding-right: 0;
}

/* Legacy */

/* Subheader */
.gsa-block-subheader {
    align-items: flex-end;
    padding: 0;
    margin-bottom: 10px;
}
.gsa-block-subheader .wp-block-cover__inner-container {
    background: linear-gradient(0deg, rgba(255,255,255,1) 20%, rgba(255,255,255,0) 100%);
    padding: 80px 3em 15px 3em;
    margin-bottom: -1px;
    max-width: unset !important;
    color: #000;
}
.gsa-block-subheader .wp-block-cover__inner-container h3 {
    text-align: center;
    text-transform: uppercase;
    margin-left: auto;
    margin-right: auto;
    max-width: 768px;
}
  @media only screen and (max-width : 768px) {
    .gsa-block-subheader .wp-block-cover__inner-container h3 {
      font-size: 1.8rem;
  }
  }

/*#endregion */

/*#region ==== TEMPLATE ==== */

/* Home */
.gsa-home-heading h1{
    font-size: 6rem;
    font-weight: 800;
    font-family: 'Montserrat';
}
.gsa-home-heading h2 {
    font-size: 3rem;
    font-family: 'Montserrat';
}
.home .gsa-header {
    box-shadow: none;
    height: 600px;
}
@media screen and (max-width:768px) {
    .gsa-home-heading h1{
        font-size: 3rem;
    }
    .gsa-home-heading h2 {
        font-size: 2rem;
    }
}


/* Contact */
.gsa-offices {
    margin-top: 40px;
}
.gsa-offices .gsa-office-title {
    margin-bottom: 10px;
}
.gsa-offices .gsa-office-title>.wp-block-column:first-child {
    align-self: flex-end;
    padding-bottom: 20px;
}
.gsa-office-container {
    margin-left: calc(-1* var(--viewportwidth) / 2 + 100% / 2);
    margin-right: calc(-1* var(--viewportwidth) / 2 + 100% / 2);
    padding-top: 30px;
}
.gsa-office {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.gsa-office-container:nth-of-type(even) {
    background-color: #d8d8d84f; /* colore di sfondo per le righe pari */
}
.gsa-offices-info {
    padding-left: 40px;
}
.gsa-offices-info div {
    margin-bottom: 6px;
}
.gsa-offices-info .gsa-office-name {
    margin-bottom: 40px;
}
.gsa-offices-info svg {
    margin-right: 30px;
    margin-bottom: -4px;
}
.gsa-offices-info svg path {
    fill: var(--dark-cyan);
}
.gsa-offices .gsa-offices-info a {
    text-decoration: none;
    color: var(--dark-cyan);
}
.gsa-tabset {

}
.gsa-tabset > input[type="radio"] {
    position: absolute;
    left: -200vw;
  }
  .gsa-tabset .tab-panel {
    display: none;
  }
  .gsa-tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
  .gsa-tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
  .gsa-tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
  .gsa-tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
  .gsa-tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
  .gsa-tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6) {
    display: block;
  }
  .gsa-tabset > label {
    position: relative;
    display: inline-block;
    cursor: pointer;
  }
  .gsa-tabset > input + label .wp-element-button {
    border-color: var(--dark-cyan);
    color: var(--dark-cyan) !important;
  }
  .gsa-tabset > input:checked + label .wp-element-button:hover {
    color: var(--white) !important;
  }
  .gsa-tabset > input:checked + label .wp-element-button {
    border-color: var(--accent);
    color: var(--accent) !important;
  }
  .tab-panel {
    padding: 30px 0;
  }
@media (max-width: 768px) {
    .gsa-offices .tab-panel .wp-block-columns {
        flex-direction: column-reverse;
    }
    .gsa-office {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Blog */
.gsa-blog-header {
    height: 600px;
    max-width: 100%;
    background-size: cover;
    background-position: top center;
    display: flex;
    align-items: center;
    padding-top: 30px;
}
.gsa-blog-header .entry-header {
    text-align: center;
}
.gsa-blog-title {
    padding: 20px 40px;
    border: 1px solid var(--accent);
    margin-bottom: 70px;
    display: inline-block;
    font-size: 23px;
    font-weight: 700;
}
.gsa-blog-subtitle {
    color: var(--white);
    font-weight: 700;
    font-size: 3rem;
}
.gsa-blog-caption {
    color: var(--white);
    font-weight: 300;
    font-size: 1.5rem;
}
.gsa-blog-search {
    background-color: var(--white) !important;
    border-radius: var(--elements-radius) !important;
    width: 80%;
}
@media (max-width: 768px) {
    .gsa-blog-subtitle {
        font-size: 2rem;
    }
}
.separate-containers .generate-columns .inside-article {
    padding-inline: 10px;
}
.blog .inside-article .post-image {
    margin-bottom: 0 !important;
}
.blog .inside-article .entry-summary {
    margin-top: 10px;
}
.blog .inside-article .entry-summary p {
    font-size: 16px;
}
.blog .inside-article .entry-meta {
    margin-top: 20px;
}
.blog .site-main .inside-article .entry-title {
    display: block;
    font-size: 18px;
    font-weight: 500;
}

/* Archives */
.gsa-tiles {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.gsa-tiles article {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 20px;
    width: calc(100% / 3 - 20px);
    min-width: 300px;
    max-width: 370px;
    height: 500px;
    box-sizing: border-box;
    text-align: center;
    background: var(--white);
    box-shadow: 2px 0 8px 0 rgba(74, 74, 74, .5);
}
.gsa-tiles .post-image {
    position: relative;
    overflow: hidden;
}
.gsa-tiles article .post-image img {
    height: 250px;
    object-fit: cover;
}
.gsa-tiles article .post-title a {
    font-weight: 700;
    color: var(--dark-cyan);
    font-size: 22px;
    line-height: 1.2;
    font-family: 'Montserrat';
    text-decoration: none;
}
.gsa-tiles article .post-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    padding-left: 15px;
    padding-right: 15px;
}
.gsa-tiles article .post-button a {
    text-transform: uppercase;
    font-size: 16px;
    text-decoration: none;
}
.post-button a:after {
    content: "";
    display: block;
    margin: 0 auto;
    width: 20%;
    border-bottom: 1px solid;
}
.gsa-archive-section {
    padding-top: 50px;
    text-align: center;
}
.gsa-featured-section {
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
}
#gsa-featured-tiles:before {
    content: "";
    position: absolute;
    top: 50px;
    left: 50%;
    right: 0;
    width: 98vw;
    height: 100%;
    transform: translateX(-50%);
    background: var(--cyan);
    opacity: 0.3;
    z-index: -1;
}
#gsa-archive-filters {
    margin-bottom: 30px;
}
#gsa-archive-filters:after {
    content: "";
    display: block;
    margin: 0 auto;
    width: 50%;
    padding-top: 20px;
    border-bottom: 1px solid #bababa;
}
.gsa-archive-filters-label {
    color: var(--dark-cyan);
}
#gsa-archive-filters select {
    padding-right: 25px;
    color: var(--gray);
    border-radius: var(--elements-radius);
    border-color: #bababa;
    background: var(--white) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 5px center;
    background-size: 8px 10px;
    appearance: none;
}
.gsa-post-taxonomies {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
#gsa-archive-filter-cat-dropdown {
    margin-left: 20px;
    margin-right: 10px;
}
[class^="gsa-post-taxonomy-"]:not(.gsa-post-taxonomy-category) {
    font-size: 12px;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 2px 6px;
  }
.gsa-post-taxonomy-category {
    font-size: 12px;
    color: var(--cyan);
    border: 1.5px solid var(--cyan);
    padding: 2px 8px;
}
.gsa-custom-post-element_band {
    position: absolute;
    top: 0;
    background: var(--accent);
    opacity: 0.9;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    width: 240px;
    height: 45px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    line-height: 1.1;
    -webkit-transform: translate(-50%) rotate(-45deg) translate(8%, 130%);
    transform: translate(-50%) rotate(-45deg) translate(8%, 130%);
    -webkit-box-shadow: 0 2px 4px 0 rgba(74, 74, 74, .5);
    box-shadow: 0 2px 4px 0 rgba(74, 74, 74, .5);
}
.gsa-custom-post-element_belt {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--accent);
    color: var(--white);
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    padding: 15px;
}
@media (max-width: 768px) {
    .gsa-tiles article {
        width: 100%;
        margin-right: 15px;
        margin-left: 15px;
    }
    .gsa-archive-filters-label {
        display: block;
        margin-bottom: 10px;
    }
    #gsa-archive-filters select {
        font-size: 16px;
        padding-right: 20px;
    }
    #gsa-archive-filter-cat-dropdown {
        margin-left: 0;
    }
}

/* Offer/Event post type */
.gsa-custom-post-element_band_header {
    z-index: 0;
    position: absolute;
    background: var(--accent);
    opacity: 0.9;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    width: 240px;
    height: 45px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    line-height: 1.1;
    -webkit-transform: translate(-50%) rotate(-45deg) translate(8%, 170%);
    /*transform: translate(-50%) rotate(-45deg) translate(8%, 130%);
    -webkit-box-shadow: 0 2px 4px 0 rgba(74, 74, 74, .5);*/
    box-shadow: 0 2px 4px 0 rgba(74, 74, 74, .5);
}
.gsa-custom-post-element_belt_header {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--accent);
    color: var(--white);
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    padding: 15px;
}

/* School post type */
.single-school #main {
    margin-top: 0;
}
.single-school .inside-article {
    padding-top: 0;
}
.single-school .type-school .entry-content {
    margin-top: 0;
}
.single-school .gsa-columns-with-social .wp-block-column {
    padding: 30px;
}

/* Search */
.search-results .site-main .inside-article .entry-title {
    display: block;
    font-size: 18px;
}
.search-results .site-main .inside-article .post-image, .search-results .site-main .inside-article .entry-summary {
    margin-bottom: 10px;
}

/* Landing */
.page-template-template-landing .site-header, .page-template-template-landing .secondary-navigation {
    display: none;
}
.page-template-template-landing .site-footer .footer-widgets, .page-template-template-landing .gsa-footer .gsa-second-footer .gsa-second-footer-social, .page-template-template-landing .gsa-footer .gsa-second-footer .gsa-second-footer-offices {
    display: none;
}

/*#endregion */

/*#region ==== ANIMATIONS ==== */

.gsa-loading {
    opacity: 0.5;
}

/*#endregion */
