/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
*/

@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Lora:wght@500;600;700&display=swap");

body {
    position: relative;
}

::-moz-selection {
    background: #18181b;
    color: #f7fafc;
}

::selection {
    background: #18181b;
    color: #f7fafc;
}

body.home {
	font-family: "Figtree", system-ui, sans-serif;
}

.seo-title {
    position: absolute;
    top: -10;
    left: -10;
    
}


@media (max-width: 600px) {
    .above-the-fold .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .above-the-fold .cta-buttons > div {
        width: auto !important;
    }
    
    .above-the-fold .cta-buttons 
    .cta-buttons-second-link a {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .above-the-fold .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .above-the-fold .cta-buttons > div {
        width: auto !important;
    }
    
    .above-the-fold .cta-buttons 
    .cta-buttons-second-link a {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .services-right-paragraph {
        padding-left: 0 !important;
        text-align: start !important;
    }
    
    .above-the-fold-mobile-spacing {
        display: block;
    }
}


/* ==========================================================
   STILE BASE
========================================================== */

.services-grid {
    --grid-border: 2px solid #f97316;
    gap: 0px !important
}

.services-grid > .services-grid-item {
    border: none;
    margin-bottom: 0;
    padding: 12px;
}

@media (max-width: 768px) {
    .services-grid > .services-grid-item {
        padding: 12px 0;
    }
}

/* ==========================================================
   3 COLONNE
========================================================== */

/* Colonne 1 e 2 */
.services-grid.cols-3 > .services-grid-item:not(:nth-child(3n)) {
    border-right: var(--grid-border);
}

/* Prima riga */
.services-grid.cols-3 > .services-grid-item:nth-child(-n + 3) {
    border-bottom: var(--grid-border);
}


/* ==========================================================
   2 COLONNE
========================================================== */

/* Colonna sinistra */
.services-grid.cols-2 > .services-grid-item:nth-child(2n + 1) {
    border-right: var(--grid-border);
}

/* Tutte le righe tranne l'ultima */
.services-grid.cols-2 > .services-grid-item:not(:nth-last-child(-n + 2)) {
    border-bottom: var(--grid-border);
}


/* ==========================================================
   1 COLONNA
========================================================== */

.services-grid.cols-1 > .services-grid-item:not(:last-child) {
    border-bottom: var(--grid-border);
}


.parent-media-group-container {
    position: relative;
}

.parent-media-group-container img {
    z-index: 1;
}

.quadrato-overlay {
    width: 100px;
    height: 100px;
    background: #18181b;
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: 0;
    min-height: 0;
    box-sizing: border-box;
}

.benefits-section .quadrato-overlay {
    width: 100px;
    height: 100px;
    background: #18181b;
    position: absolute;
    bottom: -20px;
    left: -20px;
    z-index: 0;
    min-height: 0;
    box-sizing: border-box;
}

/* Method card */
.method-grid .method-card {
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.method-card .number-card {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
}


/* Contact form */



/* Footer */
@media (max-width: 768px) {
    .footer-paragraph {
        padding-right: 0 !important;
    }
}


/* Services page*/
.services-title-container .title-square {
    width: 25px;
    min-width: 25px;
    height: 25px;
    flex: 0 0 25px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    
    margin-right: 10px;
    background: #f97316;
    transform: rotate(35deg);
}

.service-page-grid {
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px;
    
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.service-page-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.service-page-grid > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    min-height: 2.6em;
}

.service-card-description {
    flex-grow: 1;
}

.service-card-link a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}



/*PhotoSwipe gallery */
.photoswipe-gallery {
    display: none !important;
}

.photoswipe-trigger {
    cursor: pointer;
}

.gallery-cover {
    position: relative;
}
.wp-block-cover__inner-container {
    z-index: 10;
}

.wp-block-cover__inner-container {
    position: static !important;
}

.gallery-cover__label {
    padding: 3px;
}

.gallery-cover__label-container {
    pointer-events: none;
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: #fff;
    background-color: rgba(20, 20, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    width: 130px;
}