@media (max-width: 1350px) {
    h1, h2 {
        font-size: 2.7rem;
    }

    /* menu */
    ul.menu-page-list li {
        height: 3.5rem;
    }

    ul.menu-page-list li a, ul.menu-page-list:hover > li a:hover {
        font-size: 2.5rem;
    }

    ul.menu-page-list:hover > li a {
        font-size: 2rem;
    }

    /* Coimbra */
    .page-template-page-coimbra section.intro .description p strong {
        font-size: 1.2rem;
    }

    .img-cols .description {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    p.welcoming, .endpage p, .endpage span.bookings {
        font-size: 1.5rem;
        line-height: 2.1rem;
        max-width: 42rem;
        margin-left: auto;
        margin-right: auto;
    }

    .endpage span.bookings {
        margin-top: 5rem;
    }

    /* general pages */
    section.intro h1 {
        margin-bottom: 1rem;
    }

    section.intro .description p, .presentation .text, .slider .text p, .text-cols #col-3 p {
        font-size: 1rem;
    }
    
    .text-cols #col-2 p {
        font-size: 1.8rem;
        line-height: 2.4rem;
    }

    /* slider */
    .slider .text-wrapper {
        padding: 6vw 10vw;
    }
}


@media (max-width: 1300px) {
    h5 {
        font-size: 2.15rem;
    }

    .page-template-page-contacts h1 {
        font-size: 3.5rem;
    }

    .presentation {
        padding: 0 9vw;
    }

    .text-cols {
        padding: 0;
    }

    /* historia de coimbra */
    .single-historias-cbr section.intro {
        width: 72%;
        grid-template-columns: 250px calc(100% - 250px);
    }

    .history-navigation {
        width: 124%;
    }
}


@media (max-width: 1250px) {
    h1, h2 {
        font-size: 2.5rem;
    }

    .presentation .text {
        padding: 10% 23% 9% 14%;
    }

    .text-cols {
        width: 76%;
    }

    .text-cols #col-2 p {
        font-size: 1.5rem;
        line-height: 2rem;
        letter-spacing: 0.3px;
        padding-right: 24px;
    }
}


@media (max-width: 1200px) {
    .page-template-page-contacts h1 {
        font-size: 3rem;
    }
    
    .menu {
        padding-top: 7.5rem;
        padding-bottom: 3rem;
    }
    
    .menu .languages {
        top: 7.5rem;
    }

    ul.menu-page-list li {
        height: 3rem;
    }

    ul.menu-page-list li a, ul.menu-page-list:hover > li a:hover {
        font-size: 2.1rem;
    }

    ul.menu-page-list:hover > li a {
        font-size: 1.8rem;
    }

}


@media (max-width: 1100px) {
    h1, h2 {
        font-size: 2.3rem;
    }

    h3, h5 {
        font-size: 2rem;
    }

    .page-template-page-contacts h1 {
        font-size: 2.7rem;
    }

    section.intro, .text-cols {
        width: 100%;
        padding: 0 9vw;
    }

    section.intro {
        grid-template-columns: 40% 60%;
    }
    
    .presentation .text {
        padding: 10% 13% 9% 13%;
    }
    
    p.welcoming {
        font-size: 1.4rem;
        max-width: 38rem;
        letter-spacing: 0.1px;
    }
    
    .text-cols #col-2 p {
        font-size: 1.4rem;
        line-height: 2rem;
        padding-right: 29px;
    }
    
    .page-template-page-about section.intro img {
        height: unset;
        width: 280px;
        margin-left: auto;
        padding-right: 25px;
    }

    /* Sobre */
    .presentation img.logo {
        min-width: 120px;
    }

    /* Coimbra */
    .img-cols {
        padding: max(5vw, 4rem) 9vw;
    }

    .endpage p, .endpage span.bookings {
        font-size: 1.3rem;
        line-height: 2rem;
        max-width: 45rem;
        margin-left: auto;
        margin-right: auto;
    }


    /* Historias de Coimbra */
    .single-historias-cbr section.intro {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0 max(9vw, 40px);
    }

    .single-historias-cbr section.intro img {
        width: 220px;
        padding: 0;
        margin: 0 auto 2rem auto;
        order: 1;
    }
    
    .single-historias-cbr section.intro h1 {
        order: 2;
    }

    .single-historias-cbr section.intro .description {
        order: 3;
    }

    .history-navigation {
        width: 95%;
        top: calc(50% + 20px);
    }

    /* Contacts */
    .page-template-page-contacts .main-wrapper {
        padding: 8rem 9vw 4rem 9vw !important;
    }
}


@media (max-width: 1000px) {
    :root {
        font-size: 15px;
    }

    h1, h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    /* menu */
    .nav-toggler {
        top: 30px;
    }

    .menu {
        grid-template-columns: 225px calc(100% - 250px);
    }

    img.blue-logo {
        min-width: 170px;
    }

    ul.menu-page-list li {
        height: 2.65rem;
    }

    ul.menu-page-list li a, ul.menu-page-list:hover > li a:hover {
        font-size: 1.8rem;
    }

    ul.menu-page-list:hover > li a {
        font-size: 1.5rem;
    }
    

    /* general pages */
    section.intro {
        grid-template-columns: 230px calc(100% - 230px);
    }

    .page-template-page-about section.intro img {
        width: 230px;
    }
    
    .presentation .text {
        padding: 4rem;
    }

    .text-cols {
        grid-template-columns: 24% 35% 38%;
    }

    .text-cols #col-2 p {
        font-size: 1.2rem;
        line-height: 1.7rem;
        padding-right: 14px;
    }

    /* sobre */
    .services {
        width: 100%;
        min-width: unset;
        max-width: 800px;
        padding: 0 9vw;
    }

    .services .icon {
        width: 120px;
        min-width: unset;
    }

    .services .icon span {
        font-size: 13.5px;
        line-height: 19px;
    }
    

    /* slider */
    .slider .text-wrapper {
        padding: 4rem 9vw;
    }

    .slider .text-wrapper .overflow {
        max-width: 20rem;
    }

    .slider .text {
        max-width: 19.5rem;
    }
}


@media (max-width: 900px) {
    /* menu */
    .menu {
        grid-template-columns: 0% 100%;
        padding-left: 10vw;
        padding-right: 10vw;
    }

    img.blue-logo {
        display: none;
    }
    

    /* general pages */
    .presentation, .img-cols, section.intro, .text-cols, .slider .text-wrapper, .slider .text-wrapper, .services, p.welcoming, .endpage p, .endpage span.bookings, .single-historias-cbr section.intro {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .text-cols {
        grid-template-columns: 15rem calc(100% - 15rem);
    }

    .text-cols #col-1 {
        grid-column-start: 1;
        grid-row-start: 1;
        grid-row-end: 3;
    }

    .text-cols #col-2, .text-cols #col-3 {
        grid-column-start: 2;
    }

    .text-cols #col-2 p {
        max-width: 30rem;
        margin-bottom: 0.3rem;
    }
    
    /* slider */
    .slider {
        display: flex;
        flex-direction: column-reverse;
    }

    .slider .slider-controls {
        left: 6vw;
        top: max(380px, 38vw);
    }
    
    .slider #slider {
        margin-bottom: 0;
    }

    .slider .text-wrapper {
        margin-top: 0;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .slider .text-wrapper .overflow {
        max-width: 28rem;
    }

    .slider .text {
        max-width: 27rem;
    }

    /* sobre */
    .presentation .text {
        margin-left: 0;
        margin-top: 2rem;
    }

    p.welcoming {
        max-width: 46rem;
    }


    /* historias de coimbra */
    .history-navigation {
        width: 92px;
        position: relative;
        margin: 1rem auto;
        top: 0;
        left: 0;
        order: 0;
    }

    .single-historias-cbr section.intro img {
        margin-bottom: 0;
    }

    /* contacts */
    .page-template-page-contacts .main-wrapper {
        padding: 7rem 6vw 4rem 6vw !important;
    }
}


@media (max-width: 800px) {
    /* contacts */
    .page-template-page-contacts .contacts-wrapper {
        width: 100%;
        min-width: unset;
    }

    .page-template-page-contacts .contacts-wrapper .wp-block-columns {
        flex-direction: column-reverse;
    }

    .page-template-page-contacts .wp-block-columns > .wp-block-column:nth-of-type(2) {
        padding-left: 0;
    }

    .page-template-page-contacts h5 {
        font-size: 1.5rem;
        max-width: 22rem;
        margin-bottom: 1rem;
    }
    
    .page-template-page-contacts .wp-block-columns > .wp-block-column:nth-of-type(1):before, .page-template-page-contacts .wp-block-columns > .wp-block-column:nth-of-type(1):after {
        width: calc(46% - 20px);
        height: 1px;
        top: -4rem;
    }

    .page-template-page-contacts .wp-block-columns > .wp-block-column:nth-of-type(1):before {
        content: '';
        position: absolute;
        background-color: #a2a2a2;
        right: 0;
    }

    .page-template-page-contacts .wp-block-columns > .wp-block-column:nth-of-type(1):after {
        left: 0;
    }

    .page-template-page-contacts .location {
        top: calc(23rem - 0.3rem);
    }

    /* contact form */
    .page-template-page-contacts .wp-block-columns > .wp-block-column, .page-template-page-contacts form {
        width: 100%;
    }

    .page-template-page-contacts .wp-block-columns > .wp-block-column:nth-of-type(1) {
        margin-top: 6rem;
    }
}


@media (max-width: 740px) {
    /* sobre */
    .presentation img.decoration {
        margin-top: -1rem;
    }

    .presentation img.logo {
        margin-top: 2rem;
    }

    .presentation .text {
        grid-column-start: 2;
        margin-top: 5rem;
        margin-left: 3rem;
    }
}


@media (max-width: 700px) {
    :root {
        font-size: 14px;
    }

    .main-container:not(.home) .main-wrapper {
        padding-top: 3rem;
    }

    /* menu */
    .mneu {
        padding-top: 9rem;
    }

    .menu .languages {
        top: 8.5rem;
    }


    /* general pages */
    section.intro {
        display: flex;
        flex-direction: column;
    }

    section.intro h1 {
        order: 2;
    }

    section.intro img {
        order: 1;
        width: 90%;
        max-width: 200px;
        padding: 0;
        margin: 0 auto 2rem auto;
    }

    .page-template-page-about section.intro img {
        padding: 0;
    }

    section.intro .description {
        order: 3;
    }

    .text-cols {
        grid-template-columns: 12rem calc(100% - 12rem);
    }

    .img-cols a button, .endpage a.bttn button {
        font-size: 11px;
    }

    /* sobre */
    .presentation {
        grid-template-rows: 16vw 20vw 6rem auto;
        margin-top: 6rem;
        padding: 0;
    }

    .presentation img.logo {
        display: none;
    }

    .presentation img.decoration {
        height: auto;
        margin: 0;
        grid-column-end: 8;
        grid-row-end: 4;
    }
    
    .presentation .text {
        margin: 0;
        grid-row-end: 5;
        grid-row-start: 3;
        padding: 5rem 4rem;
    }

    .services {
        flex-wrap: wrap;
        justify-content: center;
    }

    .services .icon {
        width: 88px;
        margin-bottom: 25px;
        flex-grow: 1;
    }

    .services .icon span {
        font-size: 12px;
        line-height: 17px;
        letter-spacing: 0.5px;
    }

    p.welcoming {
        font-size: 1.3rem;
    }

    .endpage p, .endpage span.bookings {
        font-size: 1.2rem;
        line-height: 1.8rem;
    }


    /* Coimbra */
    .img-cols .imgs {
        height: unset;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        grid-gap: 0;
        margin-bottom: 2rem;
    }
    
    .img-cols .imgs img {
        margin: 7px;
    }

    .img-cols .imgs img:nth-of-type(1), .img-cols .imgs img:nth-of-type(2) {
        width: calc(50% - 14px);
    }

    .img-cols .imgs img:nth-of-type(3) {
        width: 100%;
        height: 50vw;
        object-position: top;
    }

    .img-cols .description {
        max-width: 33rem;
    }

    /* error 404 */
    .error-404 {
        height: calc(100vh - max(16vw, 125px) - 300px - 3rem);
        padding-bottom: 2rem;
    }
}


@media (max-width: 620px)  {
    .services .icon {
        width: 98px;
        flex-grow: 0;
        margin-left: 10px;
        margin-right: 10px;
    }
}


@media (max-width: 600px) {
    /* footer */
    footer a.design {
        position: relative;
        margin-left: 360px;
        right: 0;
    }

    /* general pages */
    .text-cols {
        display: flex;
        flex-direction: column;
    }

    .text-cols h2 br {
        display: none;
    }

    /* sobre */
    .page-template-page-about section.intro img {
        width: 160px;
    }

    .presentation .text {
        padding: 5rem 3.5rem;
    }


    /* contactos */
    .page-template-page-contacts .main-wrapper {
        padding-top: 6.5rem !important;
    }
}


@media (max-width: 530px) {
    /* general pages */
    section.intro img {
        max-width: 180px;
    }
    
    .page-template-page-about section.intro img {
        width: 135px;
    }

    .presentation .text {
        font-size: 0.9rem;
        padding: 3rem 2.5rem;
    }
    
    /* slider */
    .slider .text-wrapper .overflow, .slider .text {
        max-width: 100%;
    }

    .slider #slider img, #slider .img, .slider #slider .swiper-wrapper {
        height: 69vw;
        min-height: 250px;
    }

    .slider .slider-controls {
        top: max(280px, 76vw);
    }
}


@media (max-width: 460px) {
    /* footer */
    .footer-cols {
        width: 100%;
        display: grid;
        grid-template-columns: 25% 50% 25%;
        justify-items: center;
    }

    .footer-cols .footer-col {
        width: 100%;
        min-width: unset;
    }

    .footer-cols #footer-col-2 {
        padding: 0 5vw;
        margin: 0;
    }

    footer a.design {
        margin-left: auto;
    }


    /* Sobre */
    .services {
        margin-top: 5rem;
        grid-column-gap: 0;
    }
    
    .services .icon {
        width: 120px;
        flex-grow: 1;
    }

    .presentation .text {
        grid-column-start: 1;
        margin-left: 6vw;
    }


    /* Coimbra */
    .img-cols .imgs img:nth-of-type(1), .img-cols .imgs img:nth-of-type(2) {
        width: 100%;
        height: 50vw;
        object-position: top;
    }

    .img-cols .imgs img {
        margin: 7px 0;
    }
}

@media (max-width: 370px) {
    footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-cols {
        display: flex;
    }

    .footer-cols #footer-col-1, .footer-cols #footer-col-3 {
        display: none;
    }
}