* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: middle;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

#theme-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

use.svg-image {
    fill: var(--bs-body-color);
}

a {
    color: inherit;
    text-decoration: none;
}

a:visited,
a:hover,
a:active,
a:focus {
    color: inherit;
    text-decoration: none;
}

button:hover,
button:active,
button:focus {
    background: none;
    border: none;
}

body {
    --my-toolbar-bg: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0) 80%,
        rgba(0, 0, 0, 0)
    );
    --my-blur: blur(12px);
    --my-body-text: rgb(32, 32, 32);
    --my-body-bg: #eef1f4;
    --my-overlay-bg: rgba(255, 255, 255, 0.6);
    --my-menu-bg: rgba(255, 255, 255, 0.9);
    --my-gray: #585d61;
    --my-bg-gray: rgb(247, 247, 247);
    --my-input-bg: #fff;
    --cta-bg-color: rgb(32, 32, 32);
    --cta-color: #fff;
    --btn-bg-color: rgb(0, 190, 253);
    --btn-color: #fff;
    --cta-bg-color-hover: #008cff;
    --cta-color-hover: #fff;
    --spacing-unit: 0.1rem 0.5rem;
    --my-font-family: "Plus Jakarta Sans", sans-serif;
    --my-title-font-family: "Cormorant Garamond", serif;

    --my-border-radius: 0.1rem;
    --my-border-radius-lg: 1rem;
    --my-border-radius-sm: 0.1rem;
    --icon-size: 32px;
    --my-font-size: clamp(0.8rem, 0.8vw + 0.5rem, 1rem);
    --my-line-height: clamp(1.5rem, 1.5vw + 0.5rem, 1.75rem);
    --my-light-shadow:
        inset 0 1px 2px #ffffff80, 0 1px 2px #00000020, 0 2px 3px #00000020;
    --my-base-shadow:
        inset 0 1px 2px #ffffffff, 0 1px 2px #00000020, 0 2px 4px #3a6aa528;
    --my-elevated-shadow:
        inset 0 1px 2px #ffffff30, 0 2px 4px #00000030, 0 2px 4px #00000030,
        0 4px 8px #00000030;
    --my-inverse-shadow:
        0 1px 2px #ffffff30, inset 0 1px 2px #00000030,
        inset 0 2px 4px #00000030;
    background-color: var(--my-body-bg);
    color: var(--my-body-text);
    font-family: var(--my-font-family);
    font-weight: 400;
    font-size: var(--my-font-size);
    line-height: var(--my-line-height);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Firefox <146 */
    @supports (width: -moz-available) {
        --stretch: -moz-available;
    }

    /* Safari & Firefox 146+ */
    @supports (width: -webkit-fill-available) {
        --stretch: -webkit-fill-available;
    }

    /* Chromium */
    @supports (width: stretch) {
        --stretch: stretch;
    }
}

[data-bs-theme="dark"] body {
    color-scheme: dark;
    --my-body-bg: #060709;
    --my-overlay-bg: rgba(0, 0, 0, 0.6);
    --my-menu-bg: rgba(0, 0, 0, 0.9);
    --my-body-text: #e1e8f0;
    --my-gray: #c0cad7;
    --my-input-bg: #2d2c2c;
    --my-light-shadow:
        inset 0 1px 2px #ffffff30, 0 1px 2px #00000030, 0 2px 4px #00000030;
    --my-base-shadow:
        inset 0 1px 2px #ffffff30, 0 1px 2px #00000030, 0 2px 4px #00000030;
    --my-elevated-shadow:
        inset 0 1px 2px #ffffff30, 0 2px 4px #00000030, 0 2px 4px #00000030,
        0 4px 8px #00000030;
}
.my-rental-logo {
    display: inline-block;
    width: auto;
    height: var(--icon-size);
    position: relative;
    aspect-ratio: 4/1;
}

/* Skip link tastiera */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10000;
    transition: top 0.2s;
    &:focus {
        top: 0;
    }
}
input,
select {
    border: 1px solid var(--my-gray);
    border-radius: var(--my-border-radius);
    padding: var(--spacing-unit);
    font-family: var(--my-font-family);
    font-size: var(--my-font-size);
    color: var(--my-body-text);
    background-color: var(--my-input-bg);
}

button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    appearance: none;
}

.btn {
    border: 0px;
    background-color: var(--btn-bg-color);
    color: var(--btn-color);
    padding: var(--spacing-unit);
    border-radius: var(--my-border-radius);
    cursor: pointer;
    margin: 0;
    cursor: pointer;
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    justify-content: space-between;
    height: var(--icon-size);

    &.cta {
        background-color: var(--cta-bg-color);
        color: var(--cta-color);
        transition:
            background-color 0.3s ease-in-out,
            color 0.3s ease-in-out;
        &:hover {
            background-color: var(--cta-bg-color-hover);
            color: var(--cta-color-hover);
        }
    }
}

.icon,
.button-icon {
    display: inline-block;
    width: var(--icon-size);
    height: var(--icon-size);
    border-radius: var(--my-border-radius);
    corner-shape: squircle;
    position: relative;
}
.nav-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-main {
    height: calc(var(--icon-size) + 1rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--my-toolbar-bg);
    backdrop-filter: var(--my-blur);

    & .header-left {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

h1 {
    font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
    line-height: clamp(2.5rem, 3vw + 1rem, 3rem);
    font-family: var(--my-title-font-family);
    font-weight: 600;
    margin-bottom: 0.7rem;
    font-variant: small-caps;
    text-wrap: balance;
}
h2 {
    font-size: clamp(1.5rem, 1.5vw + 1rem, 2.5rem);
    line-height: clamp(2rem, 2vw + 1rem, 3rem);
    font-family: var(--my-title-font-family);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-variant: small-caps;
    text-wrap: balance;
}
h3 {
    font-size: clamp(1.2rem, 1.2vw + 1rem, 2rem);
    line-height: clamp(1.5rem, 1.5vw + 1rem, 2.5rem);
    font-family: var(--my-title-font-family);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-variant: small-caps;
    text-wrap: balance;
}
p {
    font-size: var(--my-font-size);
    line-height: var(--my-line-height);
    text-wrap: balance;
}
section {
    display: block;
    padding: 1rem;
    margin: 1rem auto;
    width: clamp(300px, 80%, 1200px);
}
.hero {
    margin: 0;
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("../images/hero2.webp");
    background-size: cover;
    background-position: center;

    & h1 {
        font-size: clamp(3rem, 3vw + 1rem, 5rem);
        color: var(--my-body-bg);
        text-shadow: 0 0 10px #00000080;
    }

    & h2 {
        font-size: clamp(2rem, 3vw + 1rem, 3rem);
        color: var(--my-body-bg);
        text-shadow: 0 0 10px #00000080;
    }
}

/* Cerca sul sito */
.search-section {
    position: sticky;
    top: 2rem;
    z-index: 1000;
    width: max-content;
    margin: -30vh auto 30vh;
    background-color: var(--my-overlay-bg);
    color: var(--my-body-text);
    backdrop-filter: var(--my-blur);
    padding: 0;
    border-radius: var(--my-border-radius);
    font-family: var(--my-title-font-family);

    & .search-bar {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-direction: row;
        anchor-name: --search-bar;

        & .search-element {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            flex-grow: 1;
            padding: 0.5rem 1rem;
        }

        & .cta {
            height: 100%;
            font-size: 1.1rem;
            font-family: var(--my-font-family);
        }
    }
}

@media (max-width: 768px) {
    .header-left {
        flex-direction: row-reverse;
        flex-grow: 1;
        justify-content: space-between;
        gap: 0.1rem;
    }

    .hero {
        height: 50vh;
        & h1 {
            font-size: 2.5rem;
        }
        & h2 {
            font-size: 1.5rem;
        }
    }

    .search-section {
        width: 90%;
        margin: -20vh auto 4rem;
        top: 3rem;
        position: relative;

        & .search-bar {
            flex-direction: column;
            align-items: stretch;
        }
    }
}
