
        @font-face {
            font-family: Agg;
            src: url(/fonts/agg.otf);
        }
        @font-face {
            font-family: Raleway;
            src: url(/fonts/Raleway/static/Raleway-Regular.ttf)
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Raleway', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #7b3434 0%, #2F2F2F 100%);
            background: linear-gradient(0deg, #FF3B3B 0%, #2F2F2F 100%);

            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }

        .header {
            background: linear-gradient(135deg, #7b3434 0%, #2F2F2F 100%);
            background: linear-gradient(0deg, #FF3B3B 0%, #2F2F2F 100%);
            background: #7b3434;
            color: white;
            padding: 40px;
            text-align: center;
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
        }

        .header p {
            font-size: 1.2em;
            opacity: 0.9;
        }

        .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
        }

        .left-column {
            padding: 40px;
            background: #f8f9fa;
            border-right: 1px solid #e0e0e0;
        }

        .right-column {
            padding: 40px;
            background: white;
        }

        .section {
            margin-bottom: 35px;
        }

        .section h2 {
            color: black;
            margin-bottom: 20px;
            font-size: 1.5em;
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: 'Agg'
        }

        .icon {
            width: 24px;
            height: 24px;
        }

        .doctor-info {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .doctor-info p {
            margin: 10px 0;
            line-height: 1.6;
        }

        .doctor-info ul{
            padding-left:25px;
            line-height: 1.6;
        }
        .addresses {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .address-item {
            margin: 15px 0;
            padding: 15px;
            background: #f0f4ff;
            border-radius: 8px;
            border-left: 4px solid #7b3434;
        }

        .address-item strong {
            color: #7b3434;
            display: block;
            margin-bottom: 5px;
        }

        .gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .gallery-item {
            aspect-ratio: 1;
            background: linear-gradient(135deg, #7b3434 0%, #2F2F2F 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.9em;
            transition: transform 0.3s;
        }

        .gallery-item:hover {
            transform: scale(1.05);
        }

        .services {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .service-item {
            padding: 20px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s;
        }

        .service-item:hover {
            background: #f0f4ff;
        }

        .service-item:last-child {
            border-bottom: none;
        }

        .service-info h3 {
            color: #333;
            margin-bottom: 5px;
        }

        .service-info p {
            color: #666;
            font-size: 0.9em;
        }

        .service-price {
            text-align: right;
            margin-right: 15px;
        }

        .price {
            font-size: 1.5em;
            color: #7b3434;
            font-weight: bold;
        }

        .duration {
            font-size: 0.9em;
            color: #666;
        }

        .btn {
            background: linear-gradient(135deg, #7b3434 0%, #2F2F2F 100%);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 1em;
            transition: transform 0.3s, box-shadow 0.3s;
            font-weight: 600;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .form-group {
            margin-bottom: 25px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 600;
        }

        select {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1em;
            transition: border-color 0.3s;
        }

        select:focus {
            outline: none;
            border-color: #7b3434;
        }

        .calendar {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 25px;
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .calendar-header h3 {
            color: #333;font-family: 'Agg'
        }

        .calendar-nav {
            display: flex;
            gap: 10px;
        }

        .nav-btn {
            background: white;
            border: 1px solid #e0e0e0;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .nav-btn:hover {
            background: #7b3434;
            color: white;
            border-color: #7b3434;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
        }

        .calendar-day {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }

        .calendar-day:hover {
            background: #7b343455;
        }

        .calendar-day.selected {
            background: linear-gradient(135deg, #7b3434 0%, #2F2F2F 100%);
            color: white;
            border-color: #7b3434;
            color: white;
        }

        .calendar-day.disabled {
            background: #f0f0f0;
            color: #ccc;
            cursor: not-allowed;
        }

        .time-slots {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 12px;
        }

        .time-slots h3 {
            color: #333;
            margin-bottom: 15px;
        }

        .slots-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .slot {
            background: white;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid #7b3434;
        }

        .slot:hover {
            border-color: #7b3434;
            background: #7b343455;
        }

        .slot.selected {
            background: linear-gradient(135deg, #7b3434 0%, #2F2F2F 100%);
            color: white;
            border-color: #7b3434;
        }

        .booking-summary {
            background: #7b343455;
            padding: 20px;
            border-radius: 12px;
            margin-top: 25px;
        }

        .booking-summary h3 {
            color: #7b3434;
            margin-bottom: 15px;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            margin: 10px 0;
            padding: 10px 0;
            border-bottom: 1px solid #ccc;
        }

        .summary-item:last-child {
            border-bottom: none;
            font-weight: bold;
            font-size: 1.2em;
        }

        /* MODAL STYLES */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            z-index: 1000;
            animation: fadeIn 0.3s ease;
        }

        .modal-overlay.active {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal {
            background: white;
            border-radius: 20px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            animation: slideUp 0.3s ease;
        }

        .modal-header {
            background: linear-gradient(135deg, #7b3434 0%, #2F2F2F 100%);
            color: white;
            padding: 30px;
            text-align: center;
            border-radius: 20px 20px 0 0;
        }

        .modal-header h2 {
            font-size: 1.8em;
            margin-bottom: 10px;
        }

        .modal-header p {
            opacity: 0.9;
            font-size: 0.95em;
        }

        .modal-body {
            padding: 30px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }

        .form-field {
            margin-bottom: 10px;
        }

        .form-field label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 600;
            font-size: 0.95em;
        }

        .form-field input,
        .form-field select,
        .form-field textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 1em;
            transition: all 0.3s;
        }

        .form-field input:focus,
        .form-field select:focus {
            outline: none;
            border-color: #7b3434;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .radio-group {
            display: flex;
            gap: 20px;
            margin-top: 8px;
        }

        .radio-option {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .radio-option input[type="radio"] {
            width: auto;
            margin-right: 8px;
            cursor: pointer;
        }

        .booking-recap {
            background: #f0f4ff;
            padding: 10px;
            border-radius: 12px;
            margin-bottom: 25px;
            border-left: 4px solid #7b3434;
        }

        .booking-recap h3 {
            color: #7b3434;
            margin-bottom: 15px;
            font-size: 1.1em;
        }

        .recap-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #d0d9f0;
        }

        .recap-item:last-child {
            border-bottom: none;
            font-weight: bold;
            margin-top: 10px;
            padding-top: 15px;
            border-top: 2px solid #7b3434;
        }

        .modal-footer {
            display: flex;
            gap: 15px;
            padding: 0 30px 30px 30px;
        }

        .btn-cancel {
            flex: 1;
            background: #f0f0f0;
            color: #666;
            border: none;
            padding: 15px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1em;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-cancel:hover {
            background: #e0e0e0;
        }

        .btn-confirm {
            flex: 2;
            background: linear-gradient(135deg, #7b3434 0%, #2F2F2F 100%);
            color: white;
            border: none;
            padding: 15px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1em;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-confirm:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @media (max-width: 968px) {
            .main-content {
                grid-template-columns: 1fr;
            }

            .left-column {
                border-right: none;
                border-bottom: 1px solid #e0e0e0;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .modal-footer {
                flex-direction: column;
            }
             .left-column, .right-column {
                padding: 20px;
            }
            .left-column .section, .right-column .section {
                margin-bottom: 25px;
            }
            .left-column h2, .right-column h2 {
                font-size: 1.3em;
            }
            .left-column .section h2, .right-column .section h2 {
                margin-bottom: 15px;
            }
            .left-column .section:last-child, .right-column .section:last-child {
                margin-bottom: 0;
            }
            .left-column .gallery {
                grid-template-columns: repeat(2, 1fr);
            }
            .left-column .services .service-item {
                flex-direction: column;
                align-items: flex-start;
            }
            .left-column .services .service-item:last-child {
                margin-bottom: 0;
            }
            .left-column .services .service-price {
                margin-right: 0;
                margin-top: 10px;
                text-align: left;
            }
            .left-column .services .service-info h3 {
                font-size: 1.1em;
            }
            .left-column .services .service-info p {
                font-size: 0.9em;
            }
        }
        
        /* 📱 OTTIMIZZAZIONE MOBILE */
@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 15px;
  }

  .header {
    padding: 25px 15px;
  }

  .header h1 {
    font-size: 1.8em;
    line-height: 1.2;
  }

  .header p {
    font-size: 1em;
  }

  .container {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .left-column,
  .right-column {
    padding: 20px 15px;
  }

  .section h2 {
    font-size: 1.2em;
    margin-bottom: 12px;
  }

  .doctor-info p,
  .addresses p,
  .service-info p,
  label,
  select,
  input,
  textarea {
    font-size: 0.95em;
    line-height: 1.4;
  }

  .address-item {
    padding: 12px;
    font-size: 0.95em;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-item {
    font-size: 0.8em;
  }

  .services .service-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-info h3 {
    font-size: 1em;
  }

  .price {
    font-size: 1.2em;
  }

  .calendar {
    padding: 15px;
  }

  .calendar-header h3 {
    font-size: 1.1em;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
  }

  .calendar-day {
    font-size: 0.8em;
    padding: 8px;
  }

  .time-slots {
    padding: 15px;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .slot {
    padding: 12px;
    font-size: 0.9em;
  }

  .booking-summary {
    padding: 15px;
    font-size: 0.95em;
  }

  .btn {
    font-size: 0.95em;
    padding: 12px;
  }

  .modal {
    max-width: 95%;
    border-radius: 16px;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-body {
    padding: 20px 15px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .btn-cancel,
  .btn-confirm {
    width: 100%;
    font-size: 1em;
    padding: 14px;
  }
}

/* 📱 Schermi molto piccoli (tipo iPhone SE) */
@media (max-width: 400px) {
  .header h1 {
    font-size: 1.5em;
  }

  .section h2 {
    font-size: 1.1em;
  }

  .price {
    font-size: 1em;
  }

  .calendar-day {
    font-size: 0.7em;
  }

  .slot {
    padding: 10px;
    font-size: 0.85em;
  }

  label,
  input,
  select,
  textarea {
    font-size: 0.9em;
  }
}