AltoCode
Atrani + Servizi

HTML
<!-- ============================================ -->
<!-- Hero -->
<!-- ============================================ -->
<section id="hero-2174">
<div class="cs-container">
<div class="cs-content">
<picture class="cs-picture cs-picture1">
<source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding10.jpg">
<source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding10.jpg">
<img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding10.jpg" alt="persone a un matrimonio" width="1058" height="936">
</picture>
<div class="cs-wrapper">
<h2 class="cs-title">Un racconto visivo raffinato e curato</h2>
<div class="cs-flex">
<p class="cs-text">
Ogni matrimonio è fatto di attimi spontanei e sentimenti profondi. La fotografia diventa il filo che unisce questi momenti, trasformandoli in ricordi da custodire nel tempo.
</p>
<a href="" class="cs-button-solid">Prenota Appuntamento</a>
</div>
</div>
<picture class="cs-picture cs-picture2">
<source media="(max-width: 1023px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding11-m.jpg">
<source media="(min-width: 1024px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding11.jpg">
<img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding11.jpg" alt="sposa" width="350" height="936">
</picture>
</div>
</div>
</section>
<!-- ============================================ -->
<!-- Servizi -->
<!-- ============================================ -->
<section id="services-2174">
<div class="cs-container">
<ul class="cs-card-group">
<li class="cs-item">
<a href="" class="cs-link">
<h3 class="cs-h3">
<img class="cs-icon" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Icons/flower.svg" loading="lazy" decoding="async" alt="icona" width="32" height="32" aria-hidden="true">
Un servizio su misura
</h3>
<p class="cs-item-text">
La fotografia diventa il filo che unisce questi momenti, trasformandoli in ricordi da custodire nel tempo.
</p>
</a>
</li>
<li class="cs-item">
<a href="" class="cs-link">
<h3 class="cs-h3">
<img class="cs-icon" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Icons/meal.svg" loading="lazy" decoding="async" alt="icona" width="32" height="32" aria-hidden="true">
Il pranzo
</h3>
<p class="cs-item-text">
La fotografia diventa il filo che unisce questi momenti, trasformandoli in ricordi da custodire nel tempo.
</p>
</a>
</li>
<li class="cs-item">
<a href="" class="cs-link">
<h3 class="cs-h3">
<img class="cs-icon" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Icons/photo.svg" loading="lazy" decoding="async" alt="icona" width="32" height="32" aria-hidden="true">
ricordi senza tempo
</h3>
<p class="cs-item-text">
La fotografia diventa il filo che unisce questi momenti, trasformandoli in ricordi da custodire nel tempo.
</p>
</a>
</li>
</ul>
</div>
</section>
CSS
/*-- -------------------------- -->
<--- Hero -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0rem) {
#hero-2174 {
overflow: hidden;
background-color: #f7f7f7;
position: relative;
z-index: 1;
}
#hero-2174 .cs-content {
position: relative;
z-index: 1;
}
#hero-2174 .cs-wrapper {
padding: clamp(3.75rem, 5vw, 5rem) 1rem clamp(3.75rem, 9.6vw, 6.25rem);
}
#hero-2174 .cs-flex {
padding-left: 3.75rem;
}
#hero-2174 .cs-title {
font-size: clamp(2.4375rem, 6.5vw, 5.125rem);
text-transform: uppercase;
line-height: 1.1em;
max-width: 18ch;
margin-bottom: clamp(1rem, 6vw, 4.875rem);
}
#hero-2174 .cs-text {
font-size: clamp(1rem, 2vw, 1.25rem);
margin-bottom: 1rem;
}
#hero-2174 .cs-text:last-of-type {
margin-bottom: 2rem;
}
#hero-2174 .cs-button-solid {
font-size: 1rem;
line-height: clamp(2.875rem, 5.5vw, 3.5rem);
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);
display: inline-block;
position: relative;
z-index: 1;
box-sizing: border-box;
}
#hero-2174 .cs-button-solid:before {
content: "";
position: absolute;
height: 100%;
width: 0%;
background: #000;
opacity: 1;
top: 0;
left: 0;
z-index: -1;
transition: width 0.3s;
}
#hero-2174 .cs-button-solid:hover:before {
width: 100%;
}
#hero-2174 .cs-picture {
width: 100%;
height: auto;
display: block;
position: relative;
z-index: 1;
}
#hero-2174 .cs-picture img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: top;
position: absolute;
top: 0;
left: 0;
}
#hero-2174 .cs-picture1 {
width: 100%;
height: 110vw;
}
#hero-2174 .cs-picture2 {
width: 100%;
height: 68vw;
max-height: 21.3125rem;
margin-left: 4.75rem;
}
}
/* Tablet - 700px */
@media only screen and (min-width: 43.75rem) {
#hero-2174 {
margin-top: 7.5rem;
}
#hero-2174 .cs-container {
display: flex;
flex-direction: column;
align-items: flex-end;
}
#hero-2174 .cs-content {
width: 57vw;
}
#hero-2174 .cs-flex {
padding-left: 8.75rem;
}
#hero-2174 .cs-picture1 {
width: 56vw;
height: 100vh;
position: absolute;
top: 0%;
right: 82%;
z-index: -1;
transform: translateY(-10rem);
}
#hero-2174 .cs-picture2 {
width: auto;
margin-left: 13.5rem;
}
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
#hero-2174 {
padding-right: 18.75rem;
}
#hero-2174 .cs-content {
width: 54%;
max-width: 34rem;
position: relative;
z-index: 1;
}
#hero-2174 .cs-wrapper {
padding-left: 0;
padding-right: 0;
}
#hero-2174 .cs-title {
max-width: 12ch;
}
#hero-2174 .cs-picture1 {
width: 60vw;
right: calc(100% - 5rem);
}
#hero-2174 .cs-picture2 {
width: 30vw;
max-width: 21.875rem;
height: 100vh;
max-height: 100vh;
margin: 0;
position: absolute;
top: 50%;
left: calc(100% + 2.5rem);
transform: translateY(-50%);
}
}
/* Large Desktop - 1920px */
@media only screen and (min-width: 120rem) {
#hero-2174 {
padding-right: 0;
position: relative;
z-index: 1;
}
#hero-2174 .cs-container {
width: 100%;
max-width: 80rem;
margin: auto;
padding-right: 5rem;
box-sizing: border-box;
position: initial;
}
#hero-2174 .cs-content {
position: initial;
}
#hero-2174 .cs-picture1 {
height: auto;
margin-right: -5.875rem;
right: 50%;
top: 0;
bottom: 0;
transform: none;
}
#hero-2174 .cs-picture2 {
height: auto;
width: 20vw;
max-height: none;
max-width: none;
margin-left: 37.875rem;
left: 50%;
top: 0;
bottom: 0;
transform: none;
}
}
/*-- -------------------------- -->
<--- Servizi -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
#services-2174 {
max-width: 120rem;
margin: auto;
position: relative;
z-index: 10;
}
#services-2174:before {
content: '';
width: 100vw;
height: 100%;
background: #1a1a1a;
opacity: 1;
position: absolute;
display: block;
top: 0;
left: 50%;
transform: translateX(-50%);
}
#services-2174 .cs-container {
width: 100%;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: clamp(3rem, 6vw, 4rem);
}
#services-2174 .cs-card-group {
width: 100%;
margin: 0;
padding: clamp(3.75rem, 7vw, 6.25rem) clamp(1rem, 4vw, 6.25rem);
box-sizing: border-box;
display: grid;
grid-template-columns: repeat(12, 1fr);
row-gap: 2rem;
position: relative;
z-index: 15;
}
#services-2174 .cs-item {
text-align: left;
list-style: none;
width: 100%;
box-sizing: border-box;
grid-column: span 12;
transition: background-color 0.3s;
}
#services-2174 .cs-link {
text-decoration: none;
display: flex;
justify-content: center;
align-items: flex-start;
flex-direction: column;
gap: 1rem;
}
#services-2174 .cs-icon {
width: 2rem;
height: auto;
}
#services-2174 .cs-h3 {
font-size: clamp(1.25rem, 2vw, 1.5625rem);
font-weight: 700;
text-align: inherit;
line-height: 1.2em;
margin: 0;
color: var(--bodyTextColorWhite);
display: flex;
align-items: center;
gap: 0.5rem;
transition: color 0.3s;
}
#services-2174 .cs-item-text {
font-size: clamp(0.875rem, 1.5vw, 1rem);
text-align: inherit;
line-height: 1.5em;
margin: 0;
color: var(--bodyTextColorWhite);
opacity: 0.8;
transition: color 0.3s, opacity 0.3s;
}
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
#services-2174 .cs-content {
flex-direction: row;
justify-content: space-between;
align-items: center;
gap: 3rem;
}
#services-2174 .cs-title {
margin: 0;
}
#services-2174 .cs-card-group {
column-gap: clamp(2rem, 6vw, 3.75rem);
}
#services-2174 .cs-flex-group {
width: 50%;
flex: none;
}
#services-2174 .cs-item {
grid-column: span 4;
}
}