@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

:root {
    --color-primary: #1B3A57;    
    --color-secondary: #6B7280;  
    --color-accent: #D4AF7F;     
    --color-bg: #F9FAFB;         
    --color-light: #E5E7EB;      
    --color-cta: #D4AF7F;        
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
section {
    padding: 0 !important;
}
html {
  scroll-behavior: smooth;
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-primary);
}
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
}
a {
    text-decoration: none;
    color: inherit;
}
header {
  border-bottom: 1px solid var(--color-accent);
  transition: .3s ease-in-out;
  background: var(--color-bg);
}
header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}
nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    background-color: var(--color-bg);
}

nav .logo {
    font-family: "Great Vibes", cursive;
    font-size: 3rem;
    line-height: 1.1;
}

nav ul {
    display: flex;
    gap: 20px; 
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-accent);
}
.hamburger-lines {
    position: relative;
    width: 32px;
    height: 24px; 
    cursor: pointer;
    display: none;
}


.hamburger-lines .line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 10px;
    background: var(--color-primary);
    transition: transform 0.4s ease, top 0.4s ease, opacity 0.4s ease;
}


.hamburger-lines .line1 {
    top: 0;
}
.hamburger-lines .line2 {
    top: 11px;
}
.hamburger-lines .line3 {
    bottom: 0;
}


.hamburger-lines.active .line1 {
    top: 11px;               
    transform: rotate(45deg);
}

.hamburger-lines.active .line2 {
    opacity: 0;              
}

.hamburger-lines.active .line3 {
    bottom: auto;            
    top: 11px;             
    transform: rotate(-45deg);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    font-weight: 600;
    padding: 12px 32px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-primary i {
    margin-left: 5px;
}
.btn-primary:hover {
    background-color: var(--color-cta);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    padding: 10px 28px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.85rem;
    border: 2px solid var(--color-secondary);
    background-color: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}
.btn-small:hover {
    background-color: var(--color-secondary);
    color: #fff;
    transform: translateY(-1px);
}
.hero {
    width: 100%;
}
.flex {
    display: flex;
    justify-content: space-between;
    border-left: 1px solid var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    padding: 0px 32px 32px;
}
.flex .col {
    width: 50%;
}
.flex .col:nth-child(1) {
    background: url('../img/studio2.jpeg') no-repeat center;
    background-size: cover;
    padding: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.flex .col:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
     background-color: rgba(60, 43, 26, 0.9);
}

.flex .col:nth-child(1) > * {
    position: relative;
    z-index: 2;
    color: var(--color-bg); 
}
.flex .col img {
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: block;
}
.hero h1 {
    font-size: 3rem;           
    font-weight: 700;           
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}
.hero p {
    font-size: 1rem;       
    font-weight: 400;           
    color: var(--color-secondary); 
    line-height: 1.6;
    margin: 0 auto 1rem;
}
.about {
    padding: 100px 0;
    background: linear-gradient(to right, var(--color-bg) 60%, #fff 40%);
    position: relative;
}
.about a {
    margin-top: 0.5rem;
} 
.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 320px;
    position: relative;
    overflow: hidden;

    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.1);
}
.about-image::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--color-accent); 
    z-index: 3;
    pointer-events: none;
}


.about-image::after {
    content: "";
    position: absolute;
    top: -30px;
    left: -30px;
    width: 120%;
    height: 120%;
    border: 1px solid rgba(212,175,127,0.3); 
    z-index: 1;
}
.about-image .overlay {
    position: absolute;
    inset: 0;
 
    z-index: 1;
}

.about-text {
    flex: 1;
    min-width: 320px;
    position: relative;
}

.about-text .subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-text h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.about-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: var(--color-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    max-width: 550px;
}
.services {
  padding: 80px 0;
  background: var(--color-bg);
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}
.services h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--color-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}


.services-row {
  display: flex;
  gap: 30px;
  margin-bottom: 1rem;
}
.top-row .service-card {
  flex: 1;
}

.bottom-row .service-card {
  flex: 1;
}

.service-card {
  background: #fff;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border: 1px solid var(--color-accent);
}

.service-card i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}


.value {
  padding:  0;
  background: var(--color-bg);
}

.value-flex {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.value-blob {
  position: relative;
  flex: 1;
  min-width: 320px;
  max-width: 500px;
}

.blob-shape {
  width: 100%;
  height: auto;
}

.value-blob img {
  position: absolute;
  top: 12%;
  left: 12%;
  width: 76%;
  height: 76%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.value-text {
  flex: 1;
  min-width: 320px;
}

.value-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  position: relative;
  line-height: 1.4;
}

.value-text h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.value-block {
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
}

.value-block p {
  font-size: 1.05rem;
  color: var(--color-secondary);
  line-height: 1.7;
}

.value-block:hover {
  transform: translateX(5px);
}
.value-text h3, .value-text .subtitle {
    margin-bottom: 1.2rem;
}
.testimonials {
  padding: 50px 0;
  text-align: center;
}

.testimonials h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.testimonials h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;

}
.carousel {
  margin-top: 2rem;
}

.carousel-cell {
  width: 350px; 
  margin: 0 15px;
  cursor: grab;
}

.testimonial-card {
  background: #fff;
  padding: 2rem;
  transition: transform 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.testimonial-card::before {
  content: '';
  border: 1px solid rgba(212,175,127,0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  transform: translate(-50%,-50%);
  height: 90%;
}
.testimonial-card:hover {
  transform: translateY(-6px);
}

.testimonial-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  color: var(--color-secondary);
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
}

.flickity-page-dots { bottom: -30px; }
.flickity-page-dots .dot { width: 10px; height: 10px; background: var(--color-accent); opacity: 0.6; }
.flickity-page-dots .dot.is-selected { background: var(--color-primary); opacity: 1; }

.flickity-prev-next-button {
  background: var(--color-accent) !important;
  width: 45px;
  height: 45px;
  border-radius: 50%;
}
.flickity-prev-next-button:hover { background: var(--color-primary); }
.flickity-prev-next-button svg { fill: #fff; width: 24px; height: 24px; }
.quote-icon {
  font-size: 3rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.testimonial-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1rem;
  gap: 1rem;
}
.testimonial-stars span {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-right: 2px;
}
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-gap: 30px;
}
.cta-banner {
  padding: 50px 0 32px !important;
  text-align: center;
}
.cta-banner h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.2;
  text-align: center;
}
.cta-banner .container {
   background: url('../img/studio3.jpeg') no-repeat center;
  background-size: cover;
  position: relative;
  padding: 4rem;
  background-attachment: fixed;
}
.cta-banner .container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(60, 43, 26, 0.9);
}
.cta-banner .container::after {
  content: '';
  position: absolute;
  top: -32px;     
  left: 0;
  width: calc(100% + 32px); 
  height: calc(100% + 32px);
  border-top: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
  pointer-events: none; 
}

.cta-banner .container  > * {
  position: relative;
  z-index: 2;
}
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background-color: var(--color-bg);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 20px 25px;
    width: 90%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1000;
}

#cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.cookie-icon {
    font-size: 30px;
    flex: 0 0 auto;
}

#cookie-banner p {
    margin: 0;
    color: var(--color-primary);
    font-size: 14px;
    flex: 1 1 60%;
}

#cookie-banner a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

#cookie-banner a:hover {
    text-decoration: underline;
}
.site-footer {
    color: inherit;
    border-top: 1px solid var(--color-accent);
    padding: 40px 0 0;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-logo h2 {
    font-family: "Great Vibes", cursive;
    line-height: 1.1;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: inherit;
}

.footer-info p {
    margin: 10px 0;
    font-size: 1rem;
    color: inherit;
}
.footer-copy {
  width: 100%;
  padding: 20px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-copy p {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--color-bg);
}
#scrollTopBtn {
    height: 38px !important;
    width: 38px !important;
    border-radius: 4px;
    position: fixed;
    bottom: 65px;
    right: 16px;
    z-index: 999;
    background-color: var(--color-accent);
    color: var(--color-bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0);
    transition: 
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.3s ease;
}

.flickity-button:focus {
    outline: 0px;
    box-shadow: var(--color-primary) 0px 0px 0px 5px !important;
}
#scrollTopBtn:hover {
    background-color: var(--color-cta);
    transform: scale(1.1);
    color: var(--color-primary);
}
@media(max-width: 768px) {
    #chi-sono {
      scroll-margin-top: 140px;
    }
    section {
    scroll-margin-top: 100px;
    }
  header {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  header .container {
      padding: 1rem 10px !important;
  }
  .hamburger-lines {
      display: flex !important;
  }
  .services-row {
      flex-direction: column;
  }
  nav ul {
    position: absolute;
    top: 80px;
    background: var(--color-bg);
    left: 0;
    flex-direction: column;
    z-index: 9999;
    padding: 20px;
    width: 100%;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
  nav ul.open {
    transform: translateX(0);
  }
  nav .logo {
    font-size: 1.5rem; 
  }
  .flex {
    flex-direction: column;
    padding: 0px;
    border: none;
  }
  .flex .col {
    width: 100%;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
   h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.6rem !important; }
    h3 { font-size: 1.4rem !important; }
    h4 { font-size: 1.1rem !important; }
    p { font-size: 0.85rem !important; line-height: 1.4 !important; }
    .btn-primary, .btn-secondary { font-size: 0.85rem !important; padding: 10px 20px !important; margin: 0 auto; }
    .btn-small { font-size: 0.75rem !important; padding: 5px 16px !important; }
    nav .logo { font-size: 1.6rem !important; }
  .container {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .about-flex {
    padding: 0px 10px;
    flex-direction: column-reverse;
  }
  .cta-banner .container::after {
    display: none;
  }
  .hero .container {
    padding: 0px;
  }
  
.flex .col:nth-child(1) {
  padding: 20px;
 }
 .flex .col:nth-child(1) > * {
  text-align: center;
 }
 .about {
  background: transparent;
  padding-top: 20px !important;
 }
 section {
  padding-bottom: 0px !important;
 }
 .testimonials {
  padding: 80px 0;
 }
 .cta-banner .container {
  padding: 20px;
 }
 .testimonial-text {
    padding: 0px 20px;
 }
.flickity-button {
  display: none;
}
.flickity-page-dots {
  display: none;
}
.cta-banner {
  padding-top: 50px;
}
#scrollTopBtn {
        padding: 0;
        width: 38px;
        right: 0px !important;
        bottom: 0;
        left: auto;
        height: 38px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        margin: 70px 16px;
        justify-content: center;
    }
.footer-copy {
  text-align: center;
}
}