/*
 Theme Name:     Dust to dust 2 (ara basat en Divi)
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Jordi Gran (aeiou.cat) per a Gra de Sorra
 Author URI:     https://jordigran.com
 Template:       Divi
 Version:        2.0.0
*/

@import url("../Divi/style.css");

/*@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;1,400;1,600&display=swap');
body {
    font-family: 'Montserrat', sans-serif !important;
}*/


:root {
  --taronja:    #f8b133;
  --vermell:    #ed5328;
  --marronet:   #c3b196;
  --marronot:   #9c907a;
  --negre:      #a49b86; /* 333 */
  --gris:       #c7bba2;
}

/*body,
.et_pb_widget a {
    color: var(--yter-black);
}*/

#main-header {
    box-shadow: none;
    border-bottom: 5px solid var(--vermell);
}

#main-header .nav li ul {
    background-color: #fff;
    border-top: 0 !important;
    padding: 0;
}

#main-header .nav li ul li {
    background-color: #fff;
    border-bottom: 5px solid var(--vermell);
}
#top-menu li li {
    padding: 0;
}
#top-menu li li a {
    padding: 6px 20px !important;
    width: 260px;
}
#top-menu li:last-child ul,
#top-menu li:last-child li a {
    width: 135px;
}
#main-header .nav li ul li:nth-child(1) {
    border-top: 5px solid var(--vermell);
}
#top-menu .menu-item-has-children>a:first-child,
#et-secondary-nav .menu-item-has-children>a:first-child {
    padding-right: 0;
}
#top-menu .menu-item-has-children>a:first-child:after,
#et-secondary-nav .menu-item-has-children>a:first-child:after {
    display: none;
}

footer ul.wp-block-social-links li {
/*    padding-left: 0 !important;*/
}
footer ul.wp-block-social-links li:before {
    display: none;
    padding-left: 0;
}
footer .wp-social-link {
  padding: 7px !important;
  border-top-left-radius: 48% !important;
  border-top-right-radius: 36% !important;
  border-bottom-left-radius: 52% !important;
  border-bottom-right-radius: 39% !important;
  background: var(--marronot) !important;
}
footer .wp-social-link:nth-child(4n+0) {       rotate:  20deg; }
footer .wp-social-link:nth-child(4n+0) svg {   rotate: -20deg; }
footer .wp-social-link:nth-child(4n+1) {       rotate:  75deg; }
footer .wp-social-link:nth-child(4n+1) svg {   rotate: -75deg; }
footer .wp-social-link:nth-child(4n+2) {       rotate:  7deg;  }
footer .wp-social-link:nth-child(4n+2) svg {   rotate: -7deg;  }
footer .wp-social-link:nth-child(4n+3) {       rotate:  38deg; }
footer .wp-social-link:nth-child(4n+3) svg {   rotate: -38deg; }

footer .wp-social-link:nth-child(3n+2) { background: var(--marronet) !important; }

/*.wp-social-link:nth-child(4n+0) { background: var(--taronja) !important;  }
.wp-social-link:nth-child(4n+1) { background: var(--marronet) !important; }
.wp-social-link:nth-child(4n+2) { background: var(--vermell) !important; }
.wp-social-link:nth-child(4n+3) { background: var(--marronot) !important; }*/

footer div.et_pb_widget {
    float: none;
    margin-bottom: 0 !important;
}
@media (max-width: 767px) {
    #footer-widgets .footer-widget .fwidget {
        margin-bottom: 0 !important;
    }
}

footer p {
    margin-bottom: 1em;
}

.et_pb_blurb img {
    aspect-ratio: 4/3;
    object-fit: cover;
}

footer input.wpcf7-text,
footer textarea {
    width: 100%;
    margin-bottom: 1em !important;
    border: none !important;
    padding: 0.6em 1em 0.2em 1em !important;
}
footer textarea {
    height: 140px;
}
input.wpcf7-submit {
    border: none;
    position: relative;
    top: -40px;
    padding: 0.6em 1em 0.2em 1em !important;
    background: var(--vermell);
    color: #fff;
    font-size: 1.2em;
}
#footer-info {
    padding-top: 10px;
}
.albert-sorpres {
    position: absolute !important;
    bottom: -82px;
    right: -100px;
}
div#et-main-area {
    overflow-x: hidden;
}

.et-search-form, .nav li ul
.et_mobile_menu, .footer-widget li:before,
.et_pb_pricing li:before,
blockquote {
    border-color: var(--vermell);
}

/*.grid-items .title {
    margin: 0 15px;
    line-height: 1.2em;
    padding-bottom: 0.2em;
}
.grid-items .layer-wrapper {
    background: transparent !important;
}
.grid-items a {
    color: var(--vermell);
}*/

.post-grid .layer-wrapper img {
    min-width: 100%;
    max-height: 200px;
    object-fit: cover;
}

body:not(.home) .et_pb_image img {
    border: 1px solid var(--marronet);
}

p img {
    position: relative;
    top: 5px;
    margin-right: 5px;
}

/* Pàgines protegides amb contrasenya */

.et_password_protected_form h1,
.et_password_protected_form h1+p,
.et_password_protected_form .et_submit_button { /* .et_password_protected_form .et_submit_button */
    visibility: hidden;
}
.et_password_protected_form h1:after,
.et_password_protected_form h1+p:after,
.et_password_protected_form .et_submit_button:before {
    visibility: visible;
    display: block;
    opacity: 1;
}
.et_password_protected_form h1:after {
    font-size: 34px;
}
.et_password_protected_form h1+p:after {
    font-size: 16px;
}
.et_password_protected_form .et_submit_button:before {
    font-size: 20px;
    border: 2px solid var(--vermell);
    padding: .5em 1em .3em 1em;
    border-radius: 3px;
}
.et_password_protected_form .et_pb_button.et_submit_button {
    float: left;
}
html[lang="ca"] .et_password_protected_form h1:after {  content: "Contrasenya"; }
html[lang="es"] .et_password_protected_form h1:after {  content: "Contraseña";  }
html[lang="ca"] .et_password_protected_form h1+p:after {   content: "Aquest contingut està protegit per contrasenya. Si no la tens posat en contacte amb l'Albert."; }
html[lang="es"] .et_password_protected_form h1+p:after {   content: "Este contenido está protegido por contraseña. Si no la tienes ponte en contacto con Albert.";  }
html[lang="ca"] .et_password_protected_form .et_submit_button:before {  content: "Enviar"; }
html[lang="es"] .et_password_protected_form .et_submit_button:before {  content: "Enviar";  }

/* Botons */
a.et_pb_button {
    padding-bottom: 0;
}
a.et_pb_button:before,
a.et_pb_button:hover:before {
    bottom: 3px;
}
body #page-container .et_pb_section .et_pb_button_0:hover {
    padding-bottom: 0;
}

@media only screen and (min-width: 981px) {
    #logo {
        max-height: 90%;
        position: relative;
        bottom: 15px;
    }
}

/* Menú de llengües */

#top-header .container {
    padding-top: 0;
}
#et-secondary-nav li {
    margin-right: 3px;
}
#et-secondary-menu li.menu-item a {
    background: var(--marronot);
    color: #fff !important;
    padding: .5em .7em .3em .7em;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

@media only screen and (min-width: 981px) {
    .et_fixed_nav #page-container .et-fixed-header#top-header {
        z-index: 2;
    }
}
@media (min-width: 981px) {
    #main-header.et-fixed-header {
        box-shadow: none !important;
    }
}

/* Botço de tancar per l'acordió */
.et_pb_accordion .et_pb_toggle_open .et_pb_toggle_title:before {
    display: block!important;
    content: "\e04f" !important;
}