/* ==============================
   STYLE.CSS
   Sito: Pimu Studio Design
   Ultimo aggiornamento: 2025-11-22
   Richiede: variables.css, typography.css
   ============================== */

/* ============================== */
/* ============ GLOBAL ========== */
/* ============================== */
:root {
  --radius-lg: 1rem;
  --duration: 220ms;
  --easing: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.flex {
  display: flex;
}

.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flex-row-mobile {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* ============================== */
/* ========== HEADER ============ */
/* ============================== */

.above-the-fold {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

header {
  margin: 2.16rem 5rem 10% 5rem;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 1.86rem;
}

header ul {
  gap: 3.25rem;
}

header ul li:first-child:hover {
  /* font-weight: 800; */
  transform: scale(1.03);
}

header ul li:last-child a {
  border-radius: 1.25rem;
  border: 1px solid #f2f3f4;
  padding: 0.75rem 1.5rem;
  gap: 0.62rem;
}

header ul li:last-child a:hover {
  color: var(--color-primary);
  border: 1px solid #e89e47;
}

header ul li:last-child svg {
  width: 1.09819rem;
  height: 1.25506rem;
}

/* ============================== */
/* ============= HERO =========== */
/* ============================== */

.hero {
  flex: 1;
  margin-bottom: min(100vh, 13rem);
}

.hero-heading {
  position: relative;
  width: 52.99138rem;
  height: 18.64338rem;
  margin: 0 auto;
}

h1 {
  z-index: 2;
}

/* wrapper che contiene gli elementi decorativi (animati in animations.css) */
.hero-orbit {
  position: absolute;
  pointer-events: none;
}

/* posizionamento relativo al titolo */

.hero-orbit--star-left {
  top: 2px;
  left: 102px;
}

.hero-orbit--star-right {
  bottom: 31px;
  right: 198px;
}

.hero-orbit--smile {
  bottom: 31px;
  right: 0;
}

.hero p {
  width: 49.0625rem;
}

.hero a[href="#works-id"] {
  border-radius: 1.25rem;
  padding: 0.75rem 1.5rem;
  margin: 2.5rem 0 0 0;
}

.hero a[href="#works-id"]:hover {
  background-color: #b3702c;
}

/* ============================== */
/* =========== SERVIZI ========== */
/* ============================== */

.service {
  margin: 0 7.88rem 12.5rem 5rem;
  align-items: start;
}

.service-left p {
  max-width: 27.1875rem;
  margin-top: 1.63rem;
}

.services-inner {
  /* max-width: 960px; */
  margin: 0 auto;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

/* Colonna immagine */
.services-image-wrap {
  position: relative;

  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  top: 0;
  transition: opacity var(--duration) var(--easing), top 260ms var(--easing);
}

.services-image-wrap.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.service-image-inner {
  width: 7.625rem;
  height: 7.625rem;
  overflow: hidden;
  will-change: transform;
}

.service-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Colonna accordion */
.services-accordion {
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
}

.service-item + .service-item {
  margin-top: 1.25rem;
}

.service-header {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
  cursor: pointer;
  font: inherit;
}

.service-chevron {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  transition: transform var(--duration) var(--easing),
    background-color var(--duration) var(--easing),
    border-color var(--duration) var(--easing);
}

.service-chevron::before {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='19' height='11' viewBox='0 0 19 11' fill='none'><path fill-rule='evenodd' clip-rule='evenodd' d='M0.556492 0.536967C1.2985 -0.178989 2.50151 -0.178989 3.24352 0.536967L9.50002 6.57399L15.7565 0.536967C16.4985 -0.178989 17.7016 -0.178989 18.4435 0.536967C19.1855 1.25294 19.1855 2.41374 18.4435 3.12972L10.8435 10.4631C10.1016 11.179 8.89852 11.179 8.15651 10.4631L0.556492 3.12972C-0.185497 2.41374 -0.185497 1.25294 0.556492 0.536967Z' fill='%23F2F3F4'/></svg>");
}

.service-item.is-open .service-chevron {
  transform: rotate(180deg);
}

.service-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 260ms var(--easing), opacity 220ms var(--easing);
}

.service-item.is-open .service-panel {
  margin-top: 0.75rem;
  opacity: 1;
  max-height: 260px;
}

.service-panel p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.service-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.service-panel ul {
  list-style: disc;
}

/* Hover estetico */
.service-item:not(.is-open) .service-header:hover .service-title {
  color: var(--accent);
}

.servizio-mobile {
  display: none;
}

/* ============================== */
/* ============ LAVORI ========== */
/* ============================== */
#works-id h3 {
  padding-left: 5.44rem;
}

.carousel-container {
  margin: 12.5rem 5rem 7.5rem 5rem;
  padding: 3.75rem 0 1.25rem 0;
  border: 4px solid var(--color-secondary);
  border-radius: 1.25rem;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 1.38rem;
  margin-top: 2.5rem;
}

button {
  border: none;
}

.nav-btn {
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#prev {
  padding-left: 4.31rem;
}

#next {
  padding-right: 4.31rem;
}

.viewport {
  overflow: hidden;
  flex: 1;
}

.track {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: auto;
}

.card img {
  width: 15rem;
  height: 17.25144rem;
}

/* DOTS */
.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 0.8125rem;
  height: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-secondary);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.dot.is-active {
  background: var(--color-secondary);
}

.lavoro:hover {
  content: url("../img/lavori/lavoro-hover.png");
}

.lavoro-cat:hover {
  content: url("../img/lavori/lavoro-cat-hover.png");
}

/* ============================== */
/* =========== CHI SIAMO ======== */
/* ============================== */

.about {
  text-align: center;
  margin: 0 0 8.75rem 0;
  position: relative;
}

.about p {
  max-width: 36.875rem;
  margin: 1.63rem auto 2.5rem auto;
}

.about img {
  width: 11.25rem;
  height: 11.25rem;
}

.about h3 {
  margin: 2.5rem 0 1.25rem 0;
}

.gap-5 {
  gap: 5rem;
}

.star-about-1 {
  position: absolute;
  top: 34px;
  left: 384.2px;
}

.star-about-2 {
  position: absolute;
  top: 174px;
  right: 360px;
}

/* ============================== */
/* ============ VALORI ========== */
/* ============================== */

.values {
  text-align: center;
}

.grid-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);

  gap: 7.5rem 8rem;
  margin: 2.5rem auto 8.75rem auto;
  width: fit-content;
}

.grid-item {
  text-align: center;
  max-width: 25.225rem;
}

.values img {
  width: 5.5rem;
  height: 5.4375rem;
}

.values h3 {
  margin: 0.62rem 0 0.75rem 0;
}

.values p {
  margin: 0 auto;
}

/* ============================== */
/* ============ FOOTER ========== */
/* ============================== */
#contattaci {
  padding: 2.5rem 9.19rem 3.25rem 2.5rem;
}

.footer-left {
  gap: 1rem;
}

.footer-left div h6:first-of-type {
  margin: 1.25rem 0 0.75rem 0;
  width: 13.375rem;
}

.footer-left h6:hover {
  font-weight: 700;
}

.footer-right div {
  margin-top: 1.25rem;
  gap: 1.83rem;
}

#logo-instagram {
  width: 2.13663rem;
  height: 2.09244rem;
}

#logo-tiktok {
  width: 1.657rem;
  height: 1.87444rem;
}

#logo-footer {
  width: 1.5625rem;
  height: 1.1235rem;
}

.firma {
  margin: 0.5rem 0 1.25rem 0;
}
