/*
Theme Name: ArxiudePort
Theme URI: https://github.com/mangasmartin/
Description: A base theme for developing custom WordPress themes from scratch
Author: L. Enrique Mangas
Version: 1.0.0
Tags: zero base basic
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --grocfort: darkgoldenrod;
    --negre: #111;
    --w1: 1000px;
    --w2: 800px;
}

body {
    font-family: "Parkinsans", sans-serif;
}

#cap {
    /* position: fixed;
    top: 0;
    left: 0;
    width: 100%; */
    height: 3rem;
    /* height: 10rem; */
    /* display: flex;
    align-items: center;
    justify-content: center; */
    /* background: url(./superior.svg) top center/100% auto no-repeat; */
    background-color: var(--grocfort);
}

.navegador {
    /* padding: 1rem; */
    width: 100%;
    display: flex;
}

#cap .navegador {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    max-width: var(--w1);
    height: 100%;
    margin: auto;
}

#logo {
	font-size: 1.4rem;
}

#logo a {
    color: black;
    text-decoration: none;
}

.arxiu {
    font-family: 'Great Vibes';
    color: white;
}

.port {
    color: black;
}

#cercaCont {
    width: 100%;
    max-width: var(--w2);
    margin: auto;
    overflow: hidden;
}

#cerca {
    transform: translateY(-100%);
    transition: transform 0.5s;
    display: flex;
    justify-content: center;
    margin: auto;
    padding: 0.5rem;
}

#cerca form {
    width: 100%;
}

#cerca div {
    display: flex;
}

#cerca input[type=submit] {
    padding: 0 0.5rem;
}

#cerca input[type=text] {
    flex: 1;
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
}

#cerca.mostra {
    transform: translateY(0%);
}

#mostraCerca {
    width: 3rem;
    height: 3rem;
    background: url(/wp-content/themes/arxiu/assets/search-3-xxl.png) center center/50% no-repeat;
    border: 0;
    cursor: pointer;
}

main {
    min-height: calc(100vh - 15rem);
    background-color: #fff;
}

.article {
    margin: 0 auto;
	padding-bottom: 2rem;
}

.contingut {
    margin: 4rem auto 0 auto;
    /* border-radius: 20px; */
    width: 100%;
	max-width: var(--w2);
	padding: 0 1rem;
    list-style: none;
}

.contingut h2 {
    margin-top: 3rem;
}

.contingut h3 {
    margin-top: 2rem;
    font-size: 1.2rem;
}

.contingut ol ol, .contingut ul ol, .contingut ol ul, .contingut ul ul {
    margin-top: 0;   
}

.contingut p:first-child {
    margin-top: 0;
}

.contingut p {
    margin-top: 1rem;
}

.justificat {
    text-align: justify;
}

.contingut p.subratllat {
    text-decoration: underline;
    margin-top: 3rem;
}

#peu {
    display: flex;
    justify-content: center;
    color: #fff;
    background-color: #111;
    padding: 2rem 1rem;
}

#peu .navegador {
    justify-content: center;
    align-items: space-between;
    max-width: var(--w1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bloc-superior-2 {
    display: flex;
    justify-content: space-between;
}

.llicencia, .llicencia-peu {
    text-align: center;
    margin: 0 auto;
    max-width: 450px;
}

.llicencia a, .llicencia-peu a {
    color: white;
}

.llicencia img {
    width: 120px;
    margin: 1rem;
}

#suport span {
    display: block;
    font-size: 12px;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

#suport img {
    height: 50px;
}

.social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social a {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    background: center center/100% no-repeat;
}

.social #correu {
    background-image: url(./assets/correo.svg);
}

.social #facebook {
    background-image: url(./assets/facebook.svg);
}

.social #instagram {
    background-image: url(./assets/instagram.svg);
}

#signatura {
    text-align: center;
}

.foto {
    width: 100%;
    max-width: 400px;
    max-height: 400px;
    display: block;
    margin: auto;
    margin-bottom: 1rem;
}

.titol {
    margin: 0.5rem auto;
    font-size: 2.4rem;
    line-height: 2.4rem;
    font-weight: bold;
}

.ref {
    margin: 0.5rem auto;
    display: inline-block;
    font-size: 0.8rem;
    color: black;

}

.descrip {
    font-size: 1rem;
}

.etiqs, .etiqs2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    margin-top: 1rem;
    gap: 0.5rem;
}

.etiqs li a, .etiqs2 a {
    text-decoration: none;
    color: white;
    background-color: grey;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    display: block;
    font-size: 0.8rem;
}

.etiqs2 a:hover {
    background-color: darkgoldenrod;
    color: black;
}

.item {
    margin-top: 1rem;
    min-height: 140px;
}

.item:first-child {
    margin-top: 0;
}

.link {
    color: black;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    border: 0.4rem solid #ccc;
    transition: border-color 1s;
}

.link:hover {
    border: 0.4rem solid #111;
}

.mini {
    width: 140px;
    height: 140px;
    background-position: center center;
    background-size: cover;
}

.info {
    flex: 1;
}

.info .nom {
    margin-top: 0;
}

@media (orientation: portrait) {
    .link {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mini {
        width: 100%;
    }
}