praiadeseselle/site/templates/css/main.css

2110 lines
32 KiB
CSS
Raw Permalink Normal View History

:root
{
--separacion: 1rem;
--contido-max: 60rem;
--destacado-max: 75rem;
--destacado: calc((var(--destacado-max) - var(--contido-max)) / 2);
--titulos: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;
--corpo: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
--color-accent: #005399;
--color-accent-tint: #FFF;
}
*, *::before, *::after
{
box-sizing: border-box;
}
.grella
{
display: grid;
grid-template-columns:
[completo-start] minmax(var(--separacion), 1fr)
[destacado-start] minmax(0, var(--destacado))
[contido-start] min(100% - (var(--separacion) * 2), var(--contido-max)) [contido-end]
minmax(0, var(--destacado)) [destacado-end]
minmax(var(--separacion), 1fr) [completo-end]
;
}
.grella > :not(.destacado, .completo),
.completo > :not(.destacado, .completo)
{
grid-column: contido;
}
.grella > .completo
{
display: grid;
grid-column: completo;
grid-template-columns: inherit;
}
.completo > .completo
{
display: grid;
grid-column: completo;
grid-template-columns: inherit;
}
.grella > .destacado,
.completo > .destacado
{
grid-column: destacado;
}
html, body
{
height: 100%;
}
body
{
display: grid;
grid-template-rows: auto 1fr auto;
color: rgb(var(--cor_10));
font-family: var(--corpo);
font-size: 1rem;
font-weight: normal;
background-color: rgb(var(--cor_60));
}
a
{
color: rgb(var(--cor_30));
text-decoration-line: underline;
text-decoration-style: dotted;
}
h1, h2, h3, h4, h5, h6
{
color: rgb(var(--cor_30));
font-family: var(--titulos);
font-weight: bold;
text-wrap: balance;
}
a.boton
{
text-decoration: none;
}
dl
{
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 10%;
max-width: 18.75rem;
margin: 0;
font-family: var(--titulos);
font-size: 0.875rem;
}
dt
{
width: 10%;
color: rgb(var(--cor_30));
}
dt::after
{
content: ": ";
}
dd
{
width: 80%;
margin: 0;
padding: 0;
}
figure
{
margin: 0;
}
figure img
{
display: block;
width: 100%;
height: auto;
object-fit: contain;
}
figure figcaption
{
padding: 10px 40px 20px;
color: rgb(var(--cor_30));
font-family: var(--titulos);
font-weight: normal;
font-size: 1rem;
text-align: center;
}
p,
figcaption
{
max-width: 65ch;
}
p
{
margin: 0 0 var(--separacion);
}
figcaption
{
margin-inline: auto;
}
time
{
display: block;
position: relative;
height: 5rem;
overflow: hidden;
width: 5rem;
border-radius: 0.6em;
box-shadow: 0 1px 0 #bdbdbd, 0 2px 0 #fff, 0 3px 0 #bdbdbd, 0 4px 0 #fff, 0 5px 0 #bdbdbd, 0 0 0 1px #bdbdbd;
font-size: 0.75rem;
background-color: #fff;
}
time *
{
display: block;
width: 100%;
font-size: 0.8rem;
font-style: normal;
font-weight: bold;
text-align: center;
}
time em
{
position: absolute;
bottom: 0;
color: rgb(var(--cor_30));
}
time strong
{
position: absolute;
top: 0;
padding: 0.3rem 0;
box-shadow: 0 2px 0 rgb(var(--cor_30));
color: white;
background-color: rgb(var(--cor_30));
}
time span
{
padding-top: 1.6rem;
color: black;
font-size: 2rem;
letter-spacing: -0.05rem;
}
ul,
ol
{
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: 0;
padding: 0;
list-style: none;
}
ul a,
ol a
{
text-decoration: none;
}
header#cabeceira
{
grid-template-rows: auto 1fr auto;
margin-bottom: var(--separacion);
padding-bottom: var(--separacion);
border-bottom: 1px solid rgba(var(--cor_10), 0.5);
}
div#cabeceira-superior
{
margin-bottom: var(--separacion);
padding-block: 0.5rem;
border-bottom: 1px solid rgba(var(--cor_10), 0.5);
background-color: #eeeeee;
}
nav#menu-usuario
{
display: grid;
grid-template-columns: repeat(2, auto);
justify-content: space-between;
}
nav#menu-usuario ul
{
grid-column: 2;
justify-content: flex-end;
}
div#cabeceira-inferior
{
display: grid;
grid-template-columns: minmax(0, 1fr) auto var(--separacion) auto minmax(0, 1fr);
justify-content: center;
align-items: center;
gap: var(--separacion) 0;
}
div#cabeceira-inferior a#logo
{
grid-column: 1 / span 5;
}
form#atopar
{
grid-column: 2;
position: relative;
}
form#atopar input
{
display: block;
appearance: none;
width: 100%;
padding: 0.5rem 0.75rem;
border: 1px solid rgb(var(--cor_10));
border-radius: 0;
color: rgb(var(--cor_10));
transition: border-color 0.15s ease-in-out,
}
form#atopar label
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
padding: 0.5rem 0.75rem;
border: 1px solid transparent;
text-align: start;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
transform-origin: 0 0;
transition: opacity 0.1s ease-in-out,
transform 0.1s ease-in-out;
}
form#atopar input:focus
{
border-color: rgb(var(--cor_30));
outline: 0;
color: var(--bs-body-color);
}
form#atopar input:focus ~ label
{
height: unset;
width: unset;
padding: 0;
background-color: rgb(var(--cor_60));
opacity: unset;
transform: scale(0.85) translateY(-0.8rem) translateX(0.15rem);
}
form#atopar .boton
{
position: absolute;
top: 0;
right: 0;
}
nav#menu-idiomas
{
grid-column: 4;
}
nav#menu-principal
{
grid-column: 1 / 6;
}
nav#menu-principal div#menu-despregable
{
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 99;
max-width: 100%;
width: 50%;
border-right: 2px solid rgb(var(--cor_30));
background-color: rgb(var(--cor_60));
transform: translateX(-100%);
transition: transform 0.3s ease-in-out;
}
nav#menu-principal div#menu-despregable.despregado
{
transform: translateX(0);
}
nav#menu-principal button.pechar
{
margin: 0.5rem var(--separacion);
}
nav#menu-principal ul
{
flex-direction: column;
}
div#menu-despregable li
{
border-left: 0.625rem solid rgb(var(--cor_60))
}
div#menu-despregable li:has(.activo),
div#menu-despregable li:hover
{
border-left: 0.625rem solid rgb(var(--cor_30));
text-decoration-line: underline;
text-decoration-style: dotted;
}
div#menu-despregable li a
{
display: block;
padding: 0.5rem;
color: rgb(var(--cor_10));
font-size: 1rem;
font-weight: var(--bs-nav-link-font-weight);
text-decoration: none;
transition: color 0.15s ease-in-out,
background-color 0.15s ease-in-out,
border-color 0.15s ease-in-out;
}
nav#migas
{
margin-bottom: var(--separacion);
}
main#contido
{
grid-template-rows: auto 1fr;
}
main#contido article,
article section
{
margin-bottom: calc(var(--separacion) * 2);
}
div.artigo p
{
margin-block-start: 0;
}
article#habitacions figure
{
position: relative;
width: 100%;
height: auto;
overflow: hidden;
padding: 0;
text-align: center;
background: rgb(var(--cor_30));
cursor: pointer;
}
article#habitacions figure img
{
display: block;
object-fit: contain;
position: relative;
width: 100%;
height: auto;
min-height: 100%;
max-width: 100%;
background-color: rgb(var(--cor_60));
opacity: 0.9;
transition: opacity 0.35s;
}
article#habitacions figure figcaption
{
padding: 2em;
color: #fff;
text-transform: uppercase;
font-size: 1.25em;
backface-visibility: hidden;
}
article#habitacions figure figcaption,
article#habitacions figure figcaption > a
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
article#habitacions figure figcaption::before
{
position: absolute;
top: 1.875rem;
right: 1.875rem;
bottom: 1.875rem;
left: 1.875rem;
border: 2px solid #fff;
box-shadow: 0 0 0 1.875rem rgba(255,255,255,0.2);
content: '';
opacity: 0;
transition: opacity 0.35s, transform 0.35s;
transform: scale3d(1.4,1.4,1);
}
article#habitacions figure h2
{
margin: 20% 0 var(--separacion) 0;
color: rgb(var(--cor_30));
word-spacing: -0.15em;
font-weight: 700;
background: rgba(255,255,255,0.5);
transition: transform 0.35s;
}
article#habitacions figure p
{
padding: 1em;
letter-spacing: 1px;
font-size: 68.5%;
opacity: 0;
transition: opacity 0.35s, transform 0.35s;
transform: scale(1.5);
}
article#habitacions figure:hover img
{
opacity: 0.4;
}
article#habitacions figure:hover figcaption::before,
article#habitacions figure:hover p
{
opacity: 1;
transform: scale3d(1,1,1);
}
article#habitacions figure:hover h3
{
transform: scale(0.9);
}
article#noticias
{
display: grid;
grid-template-columns: 1fr;
grid-template-rows: repeat(2, auto) 1fr;
gap: var(--separacion);
}
section#mantemento img
{
margin-bottom: 1.5rem;
padding: 3rem;
border: 1px solid rgba(var(--cor_10), 0.3);
border-radius: 0.5rem;
box-shadow: 0 1rem 3rem rgba(var(--cor_10), 0.3);
}
section[id^="galeria-"]
{
grid-column: destacado;
width: 100%;
height: auto;
margin-inline: auto;
}
section[id^="galeria-"] div.swiper-wrapper
{
height: auto;
}
section[id^="galeria-"] p.controis
{
display: flex;
justify-content: center;
margin: 0 auto;
}
section[id^="galeria-"] .swiper-button-prev,
section[id^="galeria-"] .swiper-button-next
{
padding: var(--separacion);
}
section[id^="galeria-"] .swiper-pagination
{
padding: var(--separacion) 0;
}
section[id^="galeria-"] .swiper-button-prev,
section[id^="galeria-"] .swiper-button-next,
section[id^="galeria-"] .swiper-pagination
{
display: inline;
position: relative;
bottom: initial;
top: initial;
left: initial;
right: initial;
width: fit-content;
height: auto;
margin: -20px 0 0;
color: rgb(var(--cor_10));
}
section[id^="galeria-"] .swiper-button-next::after,
section[id^="galeria-"] .swiper-button-prev::after
{
font-family: 'icomoon' !important;;
font-size: 1.5rem;
text-transform: none !important;
letter-spacing: 0;
font-variant: initial;
line-height: 1.5;
}
section[id^="galeria-"] .swiper-button-prev::after,
section[id^="galeria-"] .swiper-rtl .swiper-button-next::after
{
content: '\e91c';
}
section[id^="galeria-"] .swiper-button-next::after,
section[id^="galeria-"] .swiper-rtl .swiper-button-prev::after
{
content: '\e91d';
}
section[id^="galeria-"] .swiper-pagination-bullet
{
display: inline;
width: fit-content;
margin: 0;
padding: var(--separacion);
background-color: transparent;
}
section[id^="galeria-"] .swiper-pagination-bullet:after
{
font-family: 'icomoon' !important;;
font-size: 1.5rem;
text-transform: none !important;
letter-spacing: 0;
font-variant: initial;
line-height: 1.5;
content: "\e91e";
}
section[id^="galeria-"] .swiper-pagination-bullet-active:after
{
content: "\e91b";
}
section[id^="imaxe-"],
div[id^="imaxe-"]
{
display: grid;
align-items: center;
gap: var(--separacion);
}
section[id^="imaxe-"] div.artigo
{
align-self: start;
}
section[id^="reixa-"],
div[id^="reixa-"]
{
display: grid;
align-items: center;
gap: var(--separacion);
grid-template-columns: 1fr;
}
section[id^="reixa-"] img,
div[id^="reixa-"] img
{
width: 100%;
cursor: pointer;
}
section[id^="reixa-"] div.modal,
div[id^="reixa-"] div.modal
{
position: fixed;
inset: 0;
z-index: 1;
width: 100%;
height: 100%;
padding: var(--separacion);
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.9);
}
section[id^="reixa-"] div.modal figure,
div[id^="reixa-"] div.modal figure
{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
max-height: 100%;
max-width: 100%;
}
section[id^="reixa-"] div.modal img,
div[id^="reixa-"] div.modal img
{
width: 100%;
height: 100%;
object-fit: contain;
margin: auto;
}
section[id^="reixa-"] div.modal figcaption,
div[id^="reixa-"] div.modal figcaption
{
display: block;
height: 40px;
width: 80%;
max-width: 700px;
margin: auto;
padding: var(--separacion) 0;
text-align: center;
color: #ccc;
}
section[id^="reixa-"] .modal-pechar,
div[id^="reixa-"] .modal-pechar
{
position: absolute;
top: var(--separacion);
right: calc(var(--separacion) * 2);
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
}
section[id^="reixa-"] .modal-pechar:hover,
div[id^="reixa-"] .modal-pechar:hover,
section[id^="reixa-"] .modal-pechar:focus,
div[id^="reixa-"] .modal-pechar:focus
{
color: #bbb;
text-decoration: none;
cursor: pointer;
}
section[id^="reixa-"] img.modal-imaxe,
div[id^="reixa-"] img.modal-imaxe,
section[id^="reixa-"] figcaption,
div[id^="reixa-"] figcaption
{
animation-name: zoom;
animation-duration: 0.6s;
}
section[id^="destacados-"],
div[id^="destacados-"]
{
display: grid;
grid-template-columns: 1fr;
}
section[id^="destacados-"] h2,
div[id^="destacados-"] h2
{
grid-column: 1 / 4;
border-bottom: 1px solid rgba(var(--cor_10), 0.3);
text-align: center;
}
section[id^="destacados-"] div.elemento,
div[id^="destacados-"] div.elemento,
section#contacto-info div.elemento
{
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto 1fr;
gap: var(--separacion);
padding: var(--separacion);
}
section[id^="destacados-"] .icona,
div[id^="destacados-"] .icona,
section#contacto-info .icona
{
grid-column: 1;
grid-row: 1 / span 2;
width: calc((var(--separacion) * 2) + 24px);
height: calc((var(--separacion) * 2) + 25px);
padding: var(--separacion);
border-radius: 0.5rem;
color: rgb(var(--cor_60));
font-size: 1.5rem;
background-color: rgb(var(--cor_30));
}
section[id^="destacados-"] h3,
div[id^="destacados-"] h3,
section#contacto-info h2
{
grid-column: 2;
grid-row: 1;
margin: 0;
}
section[id^="destacados-"] p,
div[id^="destacados-"] p,
section#contacto-info p
{
grid-column: 2;
grid-row: 2;
margin: 0;
margin-bottom: var(--separacion);
}
section#contacto-formulario,
section#accceso-formulario
{
display: grid;
grid-template-columns: 1fr;
gap: var(--separacion);
padding: var(--separacion);
border: 1px solid rgba(var(--cor_10), 0.5);
border-radius: 0.5rem;
background-color: #eeeeee;
}
section#accceso-formulario
{
width: min(100%, 22rem);
margin: 0 auto;
}
section#contacto-formulario form,
section#accceso-formulario form
{
display: grid;
grid-template-columns: 1fr;
row-gap: var(--separacion);
}
section#contacto-formulario iframe#mapa
{
width: 100%;
height: 100%;
padding: var(--separacion);
border-radius: 0.5rem;
background-color: rgb(var(--cor_30));
}
section#contacto-info
{
display: flex;
justify-content: center;
flex-wrap: wrap;
row-gap: var(--separacion);
margin: 0 auto;
}
section#contacto-info div.elemento
{
width: 100%;
}
section#categorias,
section#etiquetas
{
margin-bottom: var(--separacion);
}
section#categorias h2,
section#etiquetas h2
{
margin: 0;
}
section#categorias ul,
section#etiquetas ul
{
gap: var(--separacion);
}
section.acordeon > input[type="radio"]
{
position: absolute;
left: -100vw;
}
section.acordeon ul
{
overflow-y: hidden;
height: 0;
transition: height 0.3s ease;
}
section.acordeon label
{
display: block;
position: relative;
padding: var(--separacion);
border: 1px solid rgba(var(--cor_10), 0.5);
border-radius: 0.5rem 0.5rem 0 0;
background-color: #eeeeee;
}
section.acordeon label::after
{
position: absolute;
right: 0;
font-family: 'icomoon' !important;
font-variant: normal;
font-style: normal;
font-weight: normal;
line-height: 1;
text-transform: none;
content: "\e920";
}
section.acordeon > input[type="radio"]:checked ~ h2 label::after
{
content: "\e91f";
}
section.acordeon > input[type="radio"]:checked ~ ul
{
height: auto;
overflow: visible;
padding: 15px;
border: 1px solid rgba(var(--cor_10), 0.5);
border-top: 0;
}
section.noticias
{
display: grid;
grid-template-columns: 1fr;
gap: var(--separacion);
}
section.noticias aside
{
grid-column: 1;
grid-row: 1;
}
section.noticias > div
{
grid-column: 1;
grid-row: 2;
}
nav.paxinacion ul
{
justify-content: center;
gap: var(--separacion);
margin-block: var(--separacion);
}
section.noticias article.artigo header
{
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto;
gap: var(--separacion);
margin-bottom: var(--separacion);
}
section.noticias time
{
grid-column: 1;
grid-row: 1 / 3;
}
section.noticias h3
{
grid-column: 2;
grid-row: 1;
margin: 0;
}
section.noticias dl
{
grid-column: 2 / 3;
grid-row: 2;
}
section.noticias dt span
{
display: none;
}
section.noticias img
{
width: 100%;
}
nav#mapa-sitio
{
text-align: left;
}
nav#mapa-sitio ul
{
display: block;
margin: 0 0 0 var(--separacion);
padding: 0;
list-style: none;
}
nav#mapa-sitio ul > li
{
display: flex;
flex-direction: row;
align-items: flex-start;
margin: 0 0 calc(var(--separacion) / 2);
position: relative;
}
nav#mapa-sitio ul > li:before
{
left: calc(-1 * var(--separacion) / 2);
position: absolute;
top: 1rem;
height: 1px;
width: calc(var(--separacion) / 2);
background: rgb(var(--cor_10));
content: "";
}
nav#mapa-sitio ul > li:first-child:before
{
left: calc(-1 * var(--separacion));
width: var(--separacion);
}
nav#mapa-sitio ul li:after
{
bottom: 0;
left: calc((var(--separacion) / 2) - var(--separacion));
position: absolute;
top: calc(-1 * var(--separacion));
width: 1px;
background: rgb(var(--cor_10));
content: "";
}
nav#mapa-sitio ul li:first-child:after
{
top: 1rem;
}
nav#mapa-sitio ul li:last-child:after
{
bottom: auto;
height: calc(var(--separacion) + 1em);
}
nav#mapa-sitio ul li:only-child:after
{
display: none;
}
nav#mapa-sitio small
{
position: relative;
font-size: 0.8rem;
line-height: 1.5rem;
}
nav#mapa-sitio a
{
display: block;
width: 200px;
padding: 0.5rem;
border-radius: 3px;
line-height: 1.5rem;
text-decoration: none;
transition: background-color 0.4s;
}
nav#mapa-sitio a,
nav#mapa-sitio a:visited
{
color: rgb(var(--cor_60));
background: rgb(var(--cor_30));
}
footer#pe
{
padding-block: 1.5rem;
border-top: 1px solid ;
color: rgb(var(--cor_60));
font-size: 0.875rem;
background-color: rgb(var(--cor_30));
}
footer#pe a
{
color: rgb(var(--cor_60));
}
footer#pe div#info
{
display: grid;
grid-template-columns: auto var(--separacion) auto
}
footer#pe p#copy
{
grid-column: 3;
}
footer#pe ul#redes
{
grid-column: 1 / 4;
}
footer#pe p#banners
{
grid-column: 1 / 4;
}
footer#pe p#desenrolo
{
grid-column: 1 / 4;
}
footer#pe p#banners img
{
padding: var(--separacion);
}
footer#pe ul#redes
{
justify-content: center;
}
footer#pe ul#redes li a
{
padding: var(--separacion);
font-size: 2rem;
}
footer#pe p#desenrolo
{
grid-column: 1 / 7;
font-size: 0.75rem;
}
.boton
{
display: inline-block;
padding: 0.5rem;
border: 1px solid rgb(var(--cor_10));
color: rgb(var(--cor_10));
background-color: transparent;
cursor: pointer;
}
.boton.primario
{
border-color: transparent;
color: rgb(var(--cor_60));
background-color: rgb(var(--cor_30));
}
.boton.activo
{
color: rgb(var(--cor_60));
background-color: rgb(var(--cor_10));
}
.centrado,
.align_center
{
margin-inline: auto;
text-align: center;
}
.flexible
{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: var(--separacion);
}
.linna
{
flex-direction: row;
}
.noscroll
{
overflow: hidden;
}
.visually-hidden
{
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
white-space: nowrap;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
border: 0;
}
.element-focusable:focus
{
clip: auto;
overflow: visible;
height: auto;
}
.bypass-to-main:focus
{
top: 0;
left: 0;
width: 100%;
height: 40px;
line-height: 40px;
text-align: center;
background: rgb(var(--cor_30));
color: rgb(var(--cor_60));
}
@media only screen and (max-width: 576px)
{
nav#mapa-sitio > ul > li ul li
{
flex-direction: column;
}
nav#mapa-sitio > ul > li ul li ul
{
margin-top: calc(var(--separacion)/2);
}
nav#mapa-sitio > ul > li > ul li:after
{
left: calc(-1 * var(--separacion)/2);
}
nav#mapa-sitio > ul > li > ul > li li:first-child:before
{
left: calc(-1 * var(--separacion)/2);
width: calc(var(--separacion)/2);
}
nav#mapa-sitio > ul > li > ul > li li:first-child:after
{
top: calc(-1 * var(--separacion)/2);
}
nav#mapa-sitio > ul > li > ul > li li:only-child:after
{
display: block;
height: calc(var(--separacion)/2 + 1em);
}
}
@media (min-width: 640px)
{
section[id^="reixa-"],
div[id^="reixa-"]
{
grid-template-columns: repeat(2, 1fr);
}
section#contacto-info
{
column-gap: var(--separacion);
}
section#contacto-info div.elemento
{
width: calc(50% - (var(--separacion) / 2));
}
footer#pe div#info
{
grid-template-columns: auto var(--separacion) auto 1fr auto;
}
footer#pe ul#redes
{
grid-column: 5;
}
footer#pe p#banners
{
grid-column: 1 / 6;
}
footer#pe p#desenrolo
{
grid-column: 1 / 6;
}
}
@media (min-width: 768px)
{
div#cabeceira-inferior
{
grid-template-columns: auto 1fr auto var(--separacion) auto;
}
div#cabeceira-inferior a#logo
{
grid-column: 1;
}
form#atopar
{
grid-column: 3;
}
nav#menu-idiomas
{
grid-column: 5;
}
section[id^="imaxe-"],
div[id^="imaxe-"]
{
grid-template-columns: repeat(2, 1fr);
}
section[id^="imaxe-"].superior,
div[id^="imaxe-"].superior
{
grid-template-columns: 1fr;
}
section[id^="imaxe-"].esquerda figure,
div[id^="imaxe-"].esquerda figure
{
grid-column: 1;
grid-row: 2;
}
section[id^="imaxe-"].esquerda div.artigo,
div[id^="imaxe-"].esquerda figure div.artigo
{
grid-column: 2;
grid-row: 2;
}
section[id^="imaxe-"].dereita figure,
div[id^="imaxe-"].dereita figure
{
grid-column: 2;
grid-row: 2;
}
section[id^="imaxe-"].dereita div.artigo,
div[id^="imaxe-"].dereita div.artigo
{
grid-column: 1;
grid-row: 2;
}
section[id^="imaxe-"] h2
{
grid-column: 1 / 3;
grid-row: 1;
}
section[id^="reixa-"],
div[id^="reixa-"]
{
grid-template-columns: repeat(3, 1fr);
}
section[id^="destacados-"],
div[id^="destacados-"]
{
grid-template-columns: repeat(2, 1fr);
}
section.noticias
{
display: grid;
grid-template-columns: 2fr 1fr;
gap: var(--separacion);
}
section.noticias aside
{
grid-column: 2;
grid-row: 1;
}
section.noticias > div
{
grid-column: 1;
grid-row: 1;
}
}
@media only screen and (max-width: 768px)
{
nav#mapa-sitio > ul > li > ul > li ul li
{
flex-direction: column;
}
nav#mapa-sitio > ul > li > ul > li ul li ul
{
margin-top: calc(var(--separacion)/2);
}
nav#mapa-sitio > ul > li > ul > li > ul li:after
{
left: calc(-1 * var(--separacion)/2);
}
nav#mapa-sitio > ul > li > ul > li > ul > li li:first-child:before
{
left: calc(-1 * var(--separacion)/2);
width: calc(var(--separacion)/2);
}
nav#mapa-sitio > ul > li > ul > li > ul > li li:first-child:after
{
top: calc(-1 * var(--separacion)/2);
}
nav#mapa-sitio > ul > li > ul > li > ul > li li:only-child:after
{
display: block;
height: calc(var(--separacion)/2 + 1em);
}
}
@media (min-width: 1024px)
{
dl
{
gap: 0;
}
dt
{
width: 60%;
}
dd
{
width: 40%;
}
nav#menu-usuario button.boton,
nav#menu-principal div#menu-despregable button.boton
{
display: none;
}
nav#menu-principal div#menu-despregable
{
flex-grow: 1;
position: static;
z-index: auto;
width: auto;
height: auto;
border: 0;
background-color: transparent;
transform: none;
transition: none;
}
nav#menu-principal ul
{
flex-direction: row;
justify-content: center;
}
nav#menu-principal ul li,
nav#menu-principal ul li:has(.activo),
nav#menu-principal ul li:hover
{
border-left: 0;
}
article#habitacions figure
{
width: calc(50% - (var(--separacion) * 2));
}
article#noticias
{
grid-template-columns: repeat(2, 1fr);
grid-template-rows: auto 1fr;
}
section[id^="destacados-"],
div[id^="destacados-"]
{
grid-template-columns: repeat(3, 1fr);
}
section#contacto-formulario
{
grid-template-columns: repeat(2, 1fr);
padding: calc(var(--separacion) * 3);
}
section#contacto-formulario form
{
grid-template-columns: repeat(2, 1fr);
}
section#contacto-formulario iframe#mapa
{
min-height: 300px;
}
section#contacto-info div.elemento
{
width: calc(33% - (var(--separacion) / 2));
}
section.noticias dt span
{
display: inline;
}
}
@keyframes zoom
{
from {transform:scale(0)}
to {transform:scale(1)}
}
/**/
/*
#mapa-sitio
{
clear: both;
width: 100%;
margin-top: 3em;
}
#mapa-sitio #home
{
position: absolute;
margin-top: -3em;
margin-bottom: 0;
min-width: 11.5em;
width: 100%;
}
#mapa-sitio #home:before
{
display: none;
}
#mapa-sitio ul
{
display: flex;
flex-wrap: wrap;
list-style: none;
position: relative;
}
#mapa-sitio li
{
flex: 1;
flex-basis: 11.5em;
padding-right: 1.25em;
position: relative;
}
#mapa-sitio > ul > li
{
margin-top: 3em;
}
#mapa-sitio li a
{
margin: 0;
padding: .875em .9375em .9375em .9375em;
display: block;
font-size: .9375em;
font-weight: bold;
color: #000;
background: #c3eafb;
text-shadow: 0 0 10px rgba(0,0,0,.1);
border: 2px solid #b5d9ea;
box-shadow: 0px 2px 1px rgba(0,0,0,0.15);
text-decoration: none;
}
#mapa-sitio li a:hover
{
border-color: #97bdcf;
background-color: #e2f4fd;
}
#mapa-sitio ul ul
{
display: block;
}
#mapa-sitio ul ul li
{
padding-top: .6875em;
padding-right: 0;
}
#mapa-sitio ul ul li a
{
border-color: #b8da83;
background-color: #cee3ac;
}
#mapa-sitio ul ul li a:hover
{
border-color: #94b75f;
background-color: #e7f1d7;
}
#mapa-sitio ul ul li:first-child
{
padding-top: 2em;
}
#mapa-sitio ul ul ul
{
margin-top: .6em;
padding-top: .6em;
padding-bottom: .625em;
}
#mapa-sitio ul ul ul li
{
padding-top: .3125em;
padding-bottom: .3125em;
}
#mapa-sitio ul ul ul li a
{
width: 90%;
margin-right: 0;
margin-left: auto;
padding: .75em;
border-color: #e3ca4b;
font-size: .75em;
background-color: #fff7aa;
}
#mapa-sitio ul ul ul li a:hover
{
border-color: #d1b62c;
background-color: #fffce5;
}
#mapa-sitio ul ul ul li:first-child
{
padding-top: 1em;
}
#mapa-sitio ul ul ul li a:link:after,
#mapa-sitio ul ul ul li a:visited:after
{
font-size: .75em;
}
#mapa-sitio ul ul ul ul
{
margin-top: 0;
padding-top: .3125em;
padding-bottom: .3125em;
}
#mapa-sitio ul ul ul ul li a
{
width: 80%;
padding: .75em ;
background-color: #de003a;
}
#mapa-sitio ul ul ul ul li a:hover
{
background-color: #c20035;
}
#mapa-sitio ul ul ul ul li a:link:after,
#mapa-sitio ul ul ul ul li a:visited:after
{
display: none;
}
#mapa-sitio ul:before,
#mapa-sitio ul:after,
#mapa-sitio ul li:before,
#mapa-sitio ul li:after
{
display: block;
position: absolute;
z-index: -1;
border-width: 0;
border-color: #e3e3e3;
border-style: solid;
content: '';
}
#mapa-sitio > ul > li:before
{
top: -1.375em;
right: calc(50% + .625em);
height: 1.375em;
width: calc(100% - 2px);
border-top-width: 2px;
border-right-width: 2px;
}
#mapa-sitio > ul > li:first-child + li:before
{
top: -5em;
height: 5em;
border-top-width: 0;
}
#mapa-sitio ul ul li:after
{
top: 0;
right: 1px;
width: 50%;
height: .6875em;
border-left-width: 2px;
}
#mapa-sitio ul ul li:first-child:before
{
top: .6875em;
right: 1px;
width: 50%;
height: 1.3125em;
border-left-width: 2px;
}
#mapa-sitio > ul > li:last-child:after
{
border-bottom-width: 0;
}
#mapa-sitio ul ul ul li:before
{
top: -50%;
left: 0;
width: calc(50% - 5px) !important;
height: calc(100% - 2px);
border-left-width: 2px;
border-bottom-width: 2px;
}
#mapa-sitio ul ul ul li:first-child:before
{
top: -1px;
height: 2.125em;
border-top-width: 2px;
}
#mapa-sitio ul ul ul:before
{
top: -10px;
right: 1px;
width: 50%;
height: 1.25em;
border-left-width: 2px;
}
#mapa-sitio ul ul ul li:after
{
border-width: 0;
}
#mapa-sitio ul ul ul ul li:before,
#mapa-sitio ul ul ul ul li:first-child:before
{
display: none;
}
#mapa-sitio ul ul ul ul:before
{
top: -2.5em;
left: 0;
width: 1px;
height: calc(100% + 2.5em);
border-left-width: 2px;
}
#mapa-herramientas
{
float: right;
max-width: 48%;
margin-top: 0;
margin-bottom: -.25em;
margin-right: 1.25em;
list-style-type: none;
}
#mapa-herramientas li
{
display: inline-block;
padding: 0 0 .625em .625em;
}
#mapa-herramientas li:first-child
{
}
#mapa-herramientas li a
{
display: block;
padding: .75em 1em;
border: 2px solid #e3ca4b;
box-shadow: 0px 2px 0 rgba(0,0,0,0.15);
color: #000;
font-size: .75em;
font-weight: 700;
text-align: left;
text-decoration: none;
text-shadow: 0 0 10px rgba(0,0,0,.15);
background-color: #fff7aa;
}
#mapa-herramientas li a:hover
{
border-color: #d1b62c;
background-color: #fffce5;
}
#mapa-herramientas li a:link:after,
#mapa-herramientas li a:visited:after
{
margin-top: .25em;
color: #ccae14;
font-size: .75em;
font-weight: 600;
}
@media (max-width: 64opx)
{
#mapa-sitio ul
{
display: block;
}
#mapa-sitio li
{
width: 100%;
padding-right: 0;
}
#mapa-sitio #home
{
position: relative;
width: 100%;
margin-bottom: -1em;
margin-top: 0;
}
#mapa-herramientas
{
display: block;
float: none;
width: 100%;
max-width: 100%;
margin-bottom: 2.5em;
text-align: right;
}
}
@media (min-width: 640px)
{
#mapa-sitio > ul > li
{
max-width: 33%;
}
}
@media (min-width: 1024px)
{
#mapa-sitio > ul > li
{
max-width: 20%;
}
}
*/