AltoCode
Brumano

HTML
<!-- ============================================ -->
<!-- CTA -->
<!-- ============================================ -->
<section id="cta-2443">
<div class="cs-container">
<div class="cs-content">
<h2 class="cs-title">Inizia Ora</h2>
<div class="cs-flex">
<p class="cs-text">
Scopri tutti i dettagli del servizio e approfondisci ciò che possiamo offrirti in modo chiaro e trasparente.
</p>
<a href="" class="cs-button-solid">Prenota ora</a>
</div>
</div>
</div>
<picture class="cs-background">
<source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/art17.jpg">
<source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/art17.jpg">
<img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/art17.jpg" alt="tatuaggio" width="1280" height="568">
</picture>
</section>
CSS
/*-- -------------------------- -->
<--- CTA -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
#cta-2443 {
padding: var(--sectionPadding);
background-color: #010104;
position: relative;
z-index: 1;
}
#cta-2443 .cs-container {
width: 100%;
max-width: 80rem;
margin: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: clamp(2.5rem, 5vw, 3rem);
}
#cta-2443 .cs-content {
text-align: left;
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2rem;
}
#cta-2443 .cs-title {
font-size: clamp(3.8125rem, 8vw, 7.5rem);
margin: 0;
color: var(--bodyTextColorWhite);
flex: none;
}
#cta-2443 .cs-text {
margin-bottom: 1rem;
color: var(--bodyTextColorWhite);
opacity: 0.8;
}
#cta-2443 .cs-text:last-of-type {
margin-bottom: 2rem;
}
#cta-2443 .cs-button-solid {
font-size: 1rem;
line-height: clamp(2.875em, 5.5vw, 3.5em);
text-decoration: none;
font-weight: 700;
text-align: center;
margin: 0;
color: #fff;
min-width: 9.375rem;
padding: 0 1.5rem;
background-color: var(--primary);
border-radius: 0.25rem;
display: inline-block;
position: relative;
z-index: 1;
box-sizing: border-box;
}
#cta-2443 .cs-button-solid:before {
content: '';
position: absolute;
height: 100%;
width: 0%;
background: #000;
opacity: 1;
top: 0;
left: 0;
z-index: -1;
border-radius: 0.25rem;
transition: width 0.3s;
}
#cta-2443 .cs-button-solid:hover:before {
width: 100%;
}
#cta-2443 .cs-background {
width: 100%;
height: 100%;
display: block;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
#cta-2443 .cs-background img {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
opacity: 0.08;
object-fit: cover;
}
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
#cta-2443 .cs-content {
flex-direction: row;
justify-content: space-between;
align-items: flex-end;
}
#cta-2443 .cs-flex {
max-width: 23.25rem;
}
}