/*
Theme Name: Blank Full
Theme URI: 
Author: Xavier Soler | Entorno Digital SAU
Author URI: 
Description: Tema para Entorno digital
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.10
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blankfull
Tags: grid-layout, wide-blocks, full-site-editing, full-width-template, 
*/


/* Styles shared with block editor are located in "assets/css/shared.css" */

strong {
    font-weight: 700;
}


.no-shrink {
    flex-shrink: 0 !important;
}

.position-relative {
    position: relative;
}

/* anchors 6em below the top of the page */
:target {
    scroll-margin-top: 6em;
}

/* ANIMATIONS */

.has-animations [class*="animation--init"] :where(h1, h2, h3, h4, h5, h6, li, p, .wp-block-buttons) {
    opacity: 0;
    transform: translateY(1em);
}


.has-animations .animation--end :where(h1, h2, h3, h4, h5, h6, li, p, .wp-block-buttons) {
    opacity: 1;
    transition: all 0.6s ease;
    transform: translateY(0);
}


.has-animations .animation--end :where(p) {
    transition-delay: 0.4s;
}

.has-animations .animation--end :where(.wp-block-buttons) {
    transition-delay: 0.8s;
}

/* Media query for mobile */
@media screen and (min-width: 601px) {
    .only-mobile {
        display: none !important
    }
}

@media screen and (max-width: 600px) {
    .no-mobile {
        display: none !important
    }
}


/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 1.5em;
    right: 1.5em;
    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;
    background-color: var(--wp--preset--color--base-2);
    color: var(--wp--preset--color--accent);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show-button {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--wp--preset--color--base);
    transform: translateY(-3px);
}

/* header */

.wp-block-site-logo img {
    max-width: 20vw;
}

.transparent-header header {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 1;
}


.transparent-header .hero-section {
    padding-top: 8em !important;
}


.video-float {
    transform: translateY(5em);
}

figure.wp-block-boldblocks-youtube-block {
    border-radius: 1em !important;
    overflow: hidden;
}

.elvstron-section {
    background-size: auto !important;
}


/* FORMS */

.default-forms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wp--style--block-gap);
    padding-bottom: 1em;
}

.default-forms p {
    margin-block-start: 0;
    margin-block-end: 0;
}

.default-forms label:not(:has(input[type=checkbox]), :has(input[type=radio])) {
    color: var(--wp--preset--color--contrast-3);
    display: block;
}

.default-forms br {
    display: none;
}

.default-forms .form-1-col {
    grid-column: span 2;
}

.default-forms :is(input[type=text], input[type=email], textarea, select) {
    width: 100%;
    font-family: var(--wp--preset--font-family--text);
    font-size: inherit;
    padding: calc(var(--wp--style--block-gap) / 2);
    border: 1px solid var(--wp--preset--color--base-2);
    background: var(--wp--preset--color--base);
}

.default-forms input:focus,
.default-forms textarea:focus {
    box-shadow: 0 0 20px rgba(154 218 171 / 20%);
    outline: none;
    border-color: var(--wp--preset--color--contrast);
    border-width: 1px;
}

.default-forms input[type=submit] {
    background-color: var(--wp--preset--color--accent);
    border-radius: 4px;
    border-color: var(--wp--preset--color--accent);
    border-width: 0;
    color: var(--wp--preset--color--contrast);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding-top: 0.6em;
    padding-right: 1em;
    padding-bottom: 0.6em;
    padding-left: 1em;
    text-decoration: none;
}

/* */
.mapa-link {
    background: url(https://tango.dev.alfa.entorno.es/wp-content/uploads/2026/01/mapa-google.webp) no-repeat center center;
    min-height: 200px;
    height: 100%;
    display: flex;
    border-radius: 1em;
}


.gallery-container {
    position: relative;
    overflow: hidden;
}


.gallery-grid figure {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 0;
}

.gallery-grid figure.active {
    opacity: 1;
    z-index: 1;
}

.gallery-grid figure img {
    width: 100%;
    height: 100%;
    display: block;
}

/* grid servicios */
@media screen and (max-width: 600px) {
    .grid-servicios {
        grid-template-columns: 1fr !important;

    }
}

@media screen and (max-width: 1200px) {
    .form-grid>div:first-child {
        grid-column: span 10 !important;
    }

}

@media screen and (max-width: 950px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid>div:first-child,
    .form-grid>div {
        grid-column: 1 !important;
    }

}