* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #1a1a1a;
    --primary-white: #ffffff;
    --grey-light: #f5f5f5;
    --grey-medium: #888888;
    --grey-dark: #333333;
    --accent-color: #e07434;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--primary-black);
    text-decoration: none;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.3px;
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-black);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        right: 20px;
        width: 250px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 0;
        border-radius: 12px;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li {
        text-align: left;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-menu a {
        display: block;
        color: var(--primary-black);
        font-size: 16px;
    }
}

/* Hero Section */
.team-hero {
    padding: 180px 50px 80px;
    background: linear-gradient(
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.8)
    ), url('../images/portfolio-title.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 100;
    letter-spacing: -1px;
    color: var(--primary-black);
    margin-bottom: 30px;
}

.page-title strong {
    font-weight: 700;
}

.page-description {
    font-size: 18px;
    color: var(--grey-dark);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Expertise Section */
.expertise-section {
    padding: 100px 50px;
    background: var(--primary-white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.expertise-card {
    background: var(--grey-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card:hover {
    transform: translateY(-10px);
    background: var(--primary-white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-white);
    font-size: 32px;
}

.expertise-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-black);
}

.expertise-card p {
    color: var(--grey-dark);
    line-height: 1.6;
}

/* Timeline Section */
.timeline-section {
    padding: 100px 50px;
    background: var(--primary-black);
    color: var(--primary-white);
}

.timeline-header {
    text-align: center;
    margin-bottom: 80px;
}

.timeline-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.timeline-header p {
    font-size: 18px;
    color: var(--grey-medium);
    max-width: 600px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--primary-black);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.timeline-year {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--grey-medium);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 100px 50px;
    background: var(--grey-light);
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 30px;
    line-height: 1.2;
}

.section-header p {
    font-size: 18px;
    color: var(--grey-dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Studio History */
.studio-history {
    background: var(--primary-white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 80px;
}

.studio-history-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.studio-history-textbox h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 30px;
}

.studio-history-text {
    font-size: 16px;
    color: var(--grey-dark);
    line-height: 1.8;
}

.studio-founder-photo {
    text-align: center;
}

.studio-founder-photo img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.studio-founder-photo h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-black);
}

.studio-founder-photo p {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .studio-history-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .studio-founder-photo img {
        width: 180px;
        height: 180px;
    }
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 40px 30px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-black));
    transform: scaleX(0);
    transition: var(--transition);
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.team-member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition);
}

.team-card:hover .team-member-image::before {
    transform: scale(1);
}

.team-card h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.team-card .role {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
}

/* Values Section */
.values-section {
    padding: 100px 50px;
    background: var(--primary-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.value-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-black);
}

.value-item p {
    color: var(--grey-dark);
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 40px 50px;
    background: var(--primary-black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--grey-medium);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .team-hero {
        padding: 160px 20px 60px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .expertise-section,
    .timeline-section,
    .team-section,
    .values-section {
        padding: 60px 20px;
    }

    .studio-history {
        padding: 40px 30px;
        margin-bottom: 60px;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .team-grid {
        gap: 30px;
    }

    .team-card {
        padding: 30px 20px 20px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--grey-light);
}

::-webkit-scrollbar-thumb {
    background: var(--grey-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.hero-divider {
    width: 100%;
    height: 20px;
    background-color: var(--accent-color);
}

.fab {
  position: fixed;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 2000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.fab svg {
  width: 24px;
  height: 24px;
}

.fab:hover {
  transform: scale(1.1);
}

/* WhatsApp (verde) */
.fab-whatsapp {
  bottom: 90px; /* sopra il telefono */
  background-color: var(--accent-color); /* dorato/beige */
  color: var(--primary-white);
}

/* Telefono (blu) */
.fab-phone {
  bottom: 20px; /* più in basso */
  background-color: var(--primary-black); /* nero */
  color: var(--primary-white);
}

.fab:hover {
  transform: scale(1.1);
  filter: brightness(1.1); /* leggero effetto hover */
}

/* Professional Details Section Styles */
.professional-details-section {
    padding: 100px 50px;
    background: var(--primary-white);
}

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.professional-card {
    background: var(--grey-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.professional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.professional-card:hover::before {
    transform: scaleX(1);
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.professional-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(224, 116, 52, 0.1);
}

.professional-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.professional-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 5px;
}

.professional-info .title {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 16px;
}

.professional-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qualification {
    background: var(--primary-white);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.qualification strong {
    color: var(--primary-black);
    display: block;
    margin-bottom: 8px;
}

.qualification ul {
    margin-left: 20px;
    margin-top: 5px;
}

.qualification li {
    color: var(--grey-dark);
    margin-bottom: 5px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.expertise-tags span {
    background: var(--accent-color);
    color: var(--primary-white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .professional-details-section {
        padding: 60px 20px;
    }

    .professionals-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .professional-card {
        padding: 25px;
    }

    .professional-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .professional-header img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {

    /* HERO */
    .page-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .page-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    /* SECTION HEADERS */
    .section-header h2 {
        font-size: 1.9rem;
        margin-bottom: 20px;
    }

    .section-header p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* EXPERTISE */
    .expertise-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .expertise-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* TIMELINE */
    .timeline-header h2 {
        font-size: 1.8rem;
    }

    .timeline-header p {
        font-size: 15px;
    }

    .timeline-year {
        font-size: 15px;
    }

    .timeline-content h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .timeline-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* STUDIO HISTORY */
    .studio-history-textbox h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .studio-history-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .studio-founder-photo h4 {
        font-size: 18px;
    }

    .studio-founder-photo p {
        font-size: 14px;
    }

    /* TEAM */
    .team-card h4 {
        font-size: 18px;
    }

    .team-card .role {
        font-size: 14px;
    }

    /* VALUES */
    .value-item h3 {
        font-size: 17px;
    }

    .value-item p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* PROFESSIONAL DETAILS */
    .professional-info h3 {
        font-size: 18px;
    }

    .professional-info .title {
        font-size: 14px;
    }

    .qualification strong {
        font-size: 14px;
    }

    .qualification li {
        font-size: 13px;
    }

    .expertise-tags span {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* FOOTER */
    .footer {
        font-size: 13px;
        padding: 30px 20px;
    }
  
  	.timeline-item:nth-child(even) {
    	left: 0%;
    	padding-left: 40px;
    	text-align: left;
	}
}


