/*
 Theme Name: Kadence Child — Storywalking
 Template: kadence
 Description: Custom child theme for Storywalking tour operator
 Version: 1.0
 Author: Refinea
*/

/* === Legacy HTML compatibility === */

/* Grid layouts */
.col-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 30px;
}
.col-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 30px;
}
.col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Card structure */
.col.relative {
    position: relative;
}
.col.relative .fulllink {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Card image (background-image in inline style) */
.img.border {
    border-radius: 5px;
    overflow: hidden;
}
div.img.border.relative {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    transition: transform 0.5s ease;
}
.col.relative:hover div.img.border.relative {
    transform: scale(1.1);
}

/* Card title */
.testo.bold.margint1 {
    font-weight: bold;
    margin-top: 12px;
}

/* Card button */
.button.small.margint4 {
    margin-top: 15px;
    position: relative;
    z-index: 2;
}
.button.small.margint4 a {
    display: inline-block !important;
    border: 1px solid #311E28 !important;
    border-radius: 5px !important;
    padding: 6px 20px !important;
    min-width: 126px;
    text-align: center;
    font-size: 14px !important;
    color: #311E28 !important;
    background: white !important;
    text-decoration: none !important;
    transition: all 0.5s ease;
}
.col.relative:hover .button.small.margint4 a {
    background: #311E28 !important;
    color: white !important;
}

.button.small.margint4 {
    margin-top: 15px;
    position: relative;
    z-index: 2;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Page titles */
.titolo-big {
    font-family: 'PT Serif', serif;
    font-size: 42px;
    line-height: 52px;
    font-weight: 400;
}
.titolo.marginb.bold.serif h2 {
    font-family: 'PT Serif', serif;
    font-size: 28px;
    line-height: 35px;
    font-weight: 400;
    margin-bottom: 25px;
}

/* Spacing */
.marginb {
    margin-bottom: 25px;
}
.text.marginb,
.testo.marginb {
    margin-bottom: 25px;
}

/* CTA circle button (legacy) */
.lancio.bold a {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #311E28;
    font-weight: bold;
}
.lancio-svg {
    width: 54px;
    height: 54px;
}
.lancio-svg .st0 {
    fill: #311E28;
    transition: fill 0.5s ease;
}
.lancio-svg .st1 {
    fill: none;
    stroke: white;
    stroke-width: 2;
}
.lancio.bold a:hover .st0 {
    fill: #9F9F91;
}

/* Responsive */
@media (max-width: 767px) {
    .col-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .col-3 {
        grid-template-columns: 1fr;
    }
    .col-2 {
        grid-template-columns: 1fr;
    }
    .titolo-big {
        font-size: 34px;
        line-height: 40px;
    }
    .img.border .img.border.relative {
        height: 45vw;
    }
}